| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSParserContext_h | 5 #ifndef CSSParserContext_h |
| 6 #define CSSParserContext_h | 6 #define CSSParserContext_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/parser/CSSParserMode.h" | 9 #include "core/css/parser/CSSParserMode.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // override these fields. | 74 // override these fields. |
| 75 void setMode(CSSParserMode mode) { m_mode = mode; } | 75 void setMode(CSSParserMode mode) { m_mode = mode; } |
| 76 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; } | 76 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; } |
| 77 void setCharset(const String& charset) { m_charset = charset; } | 77 void setCharset(const String& charset) { m_charset = charset; } |
| 78 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } | 78 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } |
| 79 | 79 |
| 80 KURL completeURL(const String& url) const; | 80 KURL completeURL(const String& url) const; |
| 81 | 81 |
| 82 void count(UseCounter::Feature) const; | 82 void count(UseCounter::Feature) const; |
| 83 void count(CSSParserMode, CSSPropertyID) const; | 83 void count(CSSParserMode, CSSPropertyID) const; |
| 84 void countDeprecation(UseCounter::Feature) const; |
| 84 bool isUseCounterRecordingEnabled() const { return m_document; } | 85 bool isUseCounterRecordingEnabled() const { return m_document; } |
| 85 bool isDocumentHandleEqual(const Document* other) const; | 86 bool isDocumentHandleEqual(const Document* other) const; |
| 86 | 87 |
| 87 ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy() const { | 88 ContentSecurityPolicyDisposition shouldCheckContentSecurityPolicy() const { |
| 88 return m_shouldCheckContentSecurityPolicy; | 89 return m_shouldCheckContentSecurityPolicy; |
| 89 } | 90 } |
| 90 | 91 |
| 91 DECLARE_TRACE(); | 92 DECLARE_TRACE(); |
| 92 | 93 |
| 93 private: | 94 private: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 113 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; | 114 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; |
| 114 | 115 |
| 115 WeakMember<const Document> m_document; | 116 WeakMember<const Document> m_document; |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 CORE_EXPORT const CSSParserContext* strictCSSParserContext(); | 119 CORE_EXPORT const CSSParserContext* strictCSSParserContext(); |
| 119 | 120 |
| 120 } // namespace blink | 121 } // namespace blink |
| 121 | 122 |
| 122 #endif // CSSParserContext_h | 123 #endif // CSSParserContext_h |
| OLD | NEW |