| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "core/loader/HttpEquiv.h" | 5 #include "core/loader/HttpEquiv.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ScriptableDocumentParser.h" | 8 #include "core/dom/ScriptableDocumentParser.h" |
| 9 #include "core/dom/StyleEngine.h" | 9 #include "core/dom/StyleEngine.h" |
| 10 #include "core/fetch/ClientHintsPreferences.h" | 10 #include "core/fetch/ClientHintsPreferences.h" |
| 11 #include "core/frame/UseCounter.h" | 11 #include "core/frame/UseCounter.h" |
| 12 #include "core/frame/csp/ContentSecurityPolicy.h" | 12 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 13 #include "core/html/HTMLDocument.h" | |
| 14 #include "core/inspector/ConsoleMessage.h" | 13 #include "core/inspector/ConsoleMessage.h" |
| 15 #include "core/loader/DocumentLoader.h" | 14 #include "core/loader/DocumentLoader.h" |
| 16 #include "core/origin_trials/OriginTrialContext.h" | 15 #include "core/origin_trials/OriginTrialContext.h" |
| 17 #include "platform/HTTPNames.h" | 16 #include "platform/HTTPNames.h" |
| 18 #include "platform/network/HTTPParsers.h" | 17 #include "platform/network/HTTPParsers.h" |
| 19 #include "platform/weborigin/KURL.h" | 18 #include "platform/weborigin/KURL.h" |
| 20 | 19 |
| 21 namespace blink { | 20 namespace blink { |
| 22 | 21 |
| 23 void HttpEquiv::process(Document& document, const AtomicString& equiv, const Ato
micString& content, bool inDocumentHeadElement) | 22 void HttpEquiv::process(Document& document, const AtomicString& equiv, const Ato
micString& content, bool inDocumentHeadElement) |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 document.maybeHandleHttpRefresh(content, Document::HttpRefreshFromMetaTag); | 81 document.maybeHandleHttpRefresh(content, Document::HttpRefreshFromMetaTag); |
| 83 } | 82 } |
| 84 | 83 |
| 85 void HttpEquiv::processHttpEquivSetCookie(Document& document, const AtomicString
& content) | 84 void HttpEquiv::processHttpEquivSetCookie(Document& document, const AtomicString
& content) |
| 86 { | 85 { |
| 87 // FIXME: make setCookie work on XML documents too; e.g. in case of <html:me
ta .....> | 86 // FIXME: make setCookie work on XML documents too; e.g. in case of <html:me
ta .....> |
| 88 if (!document.isHTMLDocument()) | 87 if (!document.isHTMLDocument()) |
| 89 return; | 88 return; |
| 90 | 89 |
| 91 // Exception (for sandboxed documents) ignored. | 90 // Exception (for sandboxed documents) ignored. |
| 92 toHTMLDocument(document).setCookie(content, IGNORE_EXCEPTION); | 91 document.setCookie(content, IGNORE_EXCEPTION); |
| 93 } | 92 } |
| 94 | 93 |
| 95 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |