| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Adds |header| to the set of replicated CSP headers. | 57 // Adds |header| to the set of replicated CSP headers. |
| 58 virtual void addReplicatedContentSecurityPolicyHeader( | 58 virtual void addReplicatedContentSecurityPolicyHeader( |
| 59 const WebString& headerValue, | 59 const WebString& headerValue, |
| 60 WebContentSecurityPolicyType, | 60 WebContentSecurityPolicyType, |
| 61 WebContentSecurityPolicySource) const = 0; | 61 WebContentSecurityPolicySource) const = 0; |
| 62 | 62 |
| 63 // Resets replicated CSP headers to an empty set. | 63 // Resets replicated CSP headers to an empty set. |
| 64 virtual void resetReplicatedContentSecurityPolicy() const = 0; | 64 virtual void resetReplicatedContentSecurityPolicy() const = 0; |
| 65 | 65 |
| 66 // Set frame enforcement of insecure request policy replicated from another pr
ocess. | 66 // Set frame enforcement of insecure request policy replicated from another |
| 67 // process. |
| 67 virtual void setReplicatedInsecureRequestPolicy( | 68 virtual void setReplicatedInsecureRequestPolicy( |
| 68 WebInsecureRequestPolicy) const = 0; | 69 WebInsecureRequestPolicy) const = 0; |
| 69 | 70 |
| 70 // Set the frame to a unique origin that is potentially trustworthy, | 71 // Set the frame to a unique origin that is potentially trustworthy, |
| 71 // replicated from another process. | 72 // replicated from another process. |
| 72 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0; | 73 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0; |
| 73 | 74 |
| 74 virtual void DispatchLoadEventForFrameOwner() const = 0; | 75 virtual void DispatchLoadEventForFrameOwner() const = 0; |
| 75 | 76 |
| 76 virtual void didStartLoading() = 0; | 77 virtual void didStartLoading() = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 98 // to call these on a WebRemoteFrame. | 99 // to call these on a WebRemoteFrame. |
| 99 bool isWebLocalFrame() const override = 0; | 100 bool isWebLocalFrame() const override = 0; |
| 100 WebLocalFrame* toWebLocalFrame() override = 0; | 101 WebLocalFrame* toWebLocalFrame() override = 0; |
| 101 bool isWebRemoteFrame() const override = 0; | 102 bool isWebRemoteFrame() const override = 0; |
| 102 WebRemoteFrame* toWebRemoteFrame() override = 0; | 103 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace blink | 106 } // namespace blink |
| 106 | 107 |
| 107 #endif // WebRemoteFrame_h | 108 #endif // WebRemoteFrame_h |
| OLD | NEW |