Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / loader / HttpEquiv.h
blobce79070cc5abbc25503cbcadc9adf713fe985684
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
3 // found in the LICENSE file.
5 #ifndef HttpEquiv_h
6 #define HttpEquiv_h
8 #include "wtf/Allocator.h"
9 #include "wtf/text/AtomicString.h"
11 namespace blink {
13 class Document;
15 /**
16 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv="..." content="...">. This is called
17 * when a meta tag is encountered during document parsing, and also when a script dynamically changes or adds a meta
18 * tag. This enables scripts to use meta tags to perform refreshes and set expiry dates in addition to them being
19 * specified in a HTML file.
21 class HttpEquiv {
22 STATIC_ONLY(HttpEquiv);
23 public:
24 static void process(Document&, const AtomicString& equiv, const AtomicString& content, bool inDocumentHeadElement);
26 private:
27 static void processHttpEquivDefaultStyle(Document&, const AtomicString& content);
28 static void processHttpEquivRefresh(Document&, const AtomicString& content);
29 static void processHttpEquivSetCookie(Document&, const AtomicString& content);
30 static void processHttpEquivXFrameOptions(Document&, const AtomicString& content);
31 static void processHttpEquivContentSecurityPolicy(Document&, const AtomicString& equiv, const AtomicString& content);
32 static void processHttpEquivAcceptCH(Document&, const AtomicString& content);
37 #endif