Changeset 43156 in webkit for trunk/JavaScriptCore/parser/SourceProvider.h
- Timestamp:
- May 3, 2009, 9:49:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/SourceProvider.h
r38205 r43156 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 namespace JSC { 36 36 37 enum SourceBOMPresence { SourceHasNoBOMs, SourceCouldHaveBOMs }; 38 37 39 class SourceProvider : public RefCounted<SourceProvider> { 38 40 public: 39 SourceProvider(const UString& url )41 SourceProvider(const UString& url, SourceBOMPresence hasBOMs = SourceCouldHaveBOMs) 40 42 : m_url(url) 43 , m_hasBOMs(hasBOMs) 41 44 { 42 45 } … … 50 53 intptr_t asID() { return reinterpret_cast<intptr_t>(this); } 51 54 55 SourceBOMPresence hasBOMs() const { return m_hasBOMs; } 56 52 57 private: 53 58 UString m_url; 59 SourceBOMPresence m_hasBOMs; 54 60 }; 55 61
Note:
See TracChangeset
for help on using the changeset viewer.