| OLD | NEW |
| 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/WebInsecureRequestPolicy.h" | 8 #include "public/platform/WebInsecureRequestPolicy.h" |
| 9 #include "public/web/WebContentSecurityPolicy.h" | 9 #include "public/web/WebContentSecurityPolicy.h" |
| 10 #include "public/web/WebFrame.h" | 10 #include "public/web/WebFrame.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Set security origin replicated from another process. | 47 // Set security origin replicated from another process. |
| 48 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; | 48 virtual void setReplicatedOrigin(const WebSecurityOrigin&) const = 0; |
| 49 | 49 |
| 50 // Set sandbox flags replicated from another process. | 50 // Set sandbox flags replicated from another process. |
| 51 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; | 51 virtual void setReplicatedSandboxFlags(WebSandboxFlags) const = 0; |
| 52 | 52 |
| 53 // Set frame |name| and |uniqueName| replicated from another process. | 53 // Set frame |name| and |uniqueName| replicated from another process. |
| 54 virtual void setReplicatedName(const WebString& name, | 54 virtual void setReplicatedName(const WebString& name, |
| 55 const WebString& uniqueName) const = 0; | 55 const WebString& uniqueName) const = 0; |
| 56 | 56 |
| 57 virtual void resetReplicatedFeaturePolicy() const = 0; |
| 58 virtual void addReplicatedFeaturePolicyHeader( |
| 59 const WebString& headerValue) const = 0; |
| 60 |
| 57 // Adds |header| to the set of replicated CSP headers. | 61 // Adds |header| to the set of replicated CSP headers. |
| 58 virtual void addReplicatedContentSecurityPolicyHeader( | 62 virtual void addReplicatedContentSecurityPolicyHeader( |
| 59 const WebString& headerValue, | 63 const WebString& headerValue, |
| 60 WebContentSecurityPolicyType, | 64 WebContentSecurityPolicyType, |
| 61 WebContentSecurityPolicySource) const = 0; | 65 WebContentSecurityPolicySource) const = 0; |
| 62 | 66 |
| 63 // Resets replicated CSP headers to an empty set. | 67 // Resets replicated CSP headers to an empty set. |
| 64 virtual void resetReplicatedContentSecurityPolicy() const = 0; | 68 virtual void resetReplicatedContentSecurityPolicy() const = 0; |
| 65 | 69 |
| 66 // Set frame enforcement of insecure request policy replicated from another | 70 // Set frame enforcement of insecure request policy replicated from another |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // to call these on a WebRemoteFrame. | 103 // to call these on a WebRemoteFrame. |
| 100 bool isWebLocalFrame() const override = 0; | 104 bool isWebLocalFrame() const override = 0; |
| 101 WebLocalFrame* toWebLocalFrame() override = 0; | 105 WebLocalFrame* toWebLocalFrame() override = 0; |
| 102 bool isWebRemoteFrame() const override = 0; | 106 bool isWebRemoteFrame() const override = 0; |
| 103 WebRemoteFrame* toWebRemoteFrame() override = 0; | 107 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace blink | 110 } // namespace blink |
| 107 | 111 |
| 108 #endif // WebRemoteFrame_h | 112 #endif // WebRemoteFrame_h |
| OLD | NEW |