Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: third_party/WebKit/public/web/WebRemoteFrame.h

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Fp2 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebRemoteFrame_h 5 #ifndef WebRemoteFrame_h
6 #define WebRemoteFrame_h 6 #define WebRemoteFrame_h
7 7
8 #include "public/platform/WebFeaturePolicy.h"
8 #include "public/platform/WebInsecureRequestPolicy.h" 9 #include "public/platform/WebInsecureRequestPolicy.h"
9 #include "public/web/WebContentSecurityPolicy.h" 10 #include "public/web/WebContentSecurityPolicy.h"
10 #include "public/web/WebFrame.h" 11 #include "public/web/WebFrame.h"
11 #include "public/web/WebSandboxFlags.h" 12 #include "public/web/WebSandboxFlags.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 enum class WebTreeScopeType; 16 enum class WebTreeScopeType;
16 class WebFrameClient; 17 class WebFrameClient;
17 class WebRemoteFrameClient; 18 class WebRemoteFrameClient;
(...skipping 30 matching lines...) Expand all
48 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; 49 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0;
49 50
50 // Set sandbox flags replicated from another process. 51 // Set sandbox flags replicated from another process.
51 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; 52 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0;
52 53
53 // Set frame |name| and |uniqueName| replicated from another process. 54 // Set frame |name| and |uniqueName| replicated from another process.
54 virtual void setReplicatedName(const WebString& name, 55 virtual void setReplicatedName(const WebString& name,
55 const WebString& uniqueName) const = 0; 56 const WebString& uniqueName) const = 0;
56 57
57 virtual void setReplicatedFeaturePolicyHeader( 58 virtual void setReplicatedFeaturePolicyHeader(
58 const WebString& headerValue) const = 0; 59 const WebVector<WebFeaturePolicy::ParsedWhitelist>& parsedHeader)
60 const = 0;
iclelland 2016/11/23 20:20:28 That's a really unfortunate line wrap :(
raymes 2016/11/29 08:20:34 Done.
59 61
60 // Adds |header| to the set of replicated CSP headers. 62 // Adds |header| to the set of replicated CSP headers.
61 virtual void addReplicatedContentSecurityPolicyHeader( 63 virtual void addReplicatedContentSecurityPolicyHeader(
62 const WebString& headerValue, 64 const WebString& headerValue,
63 WebContentSecurityPolicyType, 65 WebContentSecurityPolicyType,
64 WebContentSecurityPolicySource) const = 0; 66 WebContentSecurityPolicySource) const = 0;
65 67
66 // Resets replicated CSP headers to an empty set. 68 // Resets replicated CSP headers to an empty set.
67 virtual void resetReplicatedContentSecurityPolicy() const = 0; 69 virtual void resetReplicatedContentSecurityPolicy() const = 0;
68 70
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // to call these on a WebRemoteFrame. 104 // to call these on a WebRemoteFrame.
103 bool isWebLocalFrame() const override = 0; 105 bool isWebLocalFrame() const override = 0;
104 WebLocalFrame* toWebLocalFrame() override = 0; 106 WebLocalFrame* toWebLocalFrame() override = 0;
105 bool isWebRemoteFrame() const override = 0; 107 bool isWebRemoteFrame() const override = 0;
106 WebRemoteFrame* toWebRemoteFrame() override = 0; 108 WebRemoteFrame* toWebRemoteFrame() override = 0;
107 }; 109 };
108 110
109 } // namespace blink 111 } // namespace blink
110 112
111 #endif // WebRemoteFrame_h 113 #endif // WebRemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698