| 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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 class WebDoubleSize; | 30 class WebDoubleSize; |
| 31 class WebFrameClient; | 31 class WebFrameClient; |
| 32 class WebFrameWidget; | 32 class WebFrameWidget; |
| 33 class WebInputMethodController; | 33 class WebInputMethodController; |
| 34 class WebRange; | 34 class WebRange; |
| 35 class WebScriptExecutionCallback; | 35 class WebScriptExecutionCallback; |
| 36 enum class WebCachePolicy; | 36 enum class WebCachePolicy; |
| 37 enum class WebSandboxFlags; | 37 enum class WebSandboxFlags; |
| 38 enum class WebTreeScopeType; | 38 enum class WebTreeScopeType; |
| 39 struct WebConsoleMessage; | 39 struct WebConsoleMessage; |
| 40 struct WebContentSecurityPolicyViolation; |
| 40 struct WebFindOptions; | 41 struct WebFindOptions; |
| 41 struct WebFloatRect; | 42 struct WebFloatRect; |
| 42 struct WebPrintPresetOptions; | 43 struct WebPrintPresetOptions; |
| 43 | 44 |
| 44 // Interface for interacting with in process frames. This contains methods that | 45 // Interface for interacting with in process frames. This contains methods that |
| 45 // require interacting with a frame's document. | 46 // require interacting with a frame's document. |
| 46 // FIXME: Move lots of methods from WebFrame in here. | 47 // FIXME: Move lots of methods from WebFrame in here. |
| 47 class WebLocalFrame : public WebFrame { | 48 class WebLocalFrame : public WebFrame { |
| 48 public: | 49 public: |
| 49 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 50 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 bool replace = false, | 148 bool replace = false, |
| 148 WebFrameLoadType = WebFrameLoadType::Standard, | 149 WebFrameLoadType = WebFrameLoadType::Standard, |
| 149 const WebHistoryItem& = WebHistoryItem(), | 150 const WebHistoryItem& = WebHistoryItem(), |
| 150 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, | 151 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, |
| 151 bool isClientRedirect = false) = 0; | 152 bool isClientRedirect = false) = 0; |
| 152 | 153 |
| 153 // On load failure, attempts to make frame's parent rendering fallback content | 154 // On load failure, attempts to make frame's parent rendering fallback content |
| 154 // and stop this frame loading. | 155 // and stop this frame loading. |
| 155 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0; | 156 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0; |
| 156 | 157 |
| 158 // Called when a navigation is blocked because a Content Security Policy (CSP) |
| 159 // is infringed. |
| 160 virtual void reportContentSecurityPolicyViolation( |
| 161 const blink::WebContentSecurityPolicyViolation&) = 0; |
| 162 |
| 157 // Navigation State ------------------------------------------------------- | 163 // Navigation State ------------------------------------------------------- |
| 158 | 164 |
| 159 // Returns true if the current frame's load event has not completed. | 165 // Returns true if the current frame's load event has not completed. |
| 160 virtual bool isLoading() const = 0; | 166 virtual bool isLoading() const = 0; |
| 161 | 167 |
| 162 // Returns true if there is a pending redirect or location change | 168 // Returns true if there is a pending redirect or location change |
| 163 // within specified interval (in seconds). This could be caused by: | 169 // within specified interval (in seconds). This could be caused by: |
| 164 // * an HTTP Refresh header | 170 // * an HTTP Refresh header |
| 165 // * an X-Frame-Options header | 171 // * an X-Frame-Options header |
| 166 // * the respective http-equiv meta tags | 172 // * the respective http-equiv meta tags |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 // to call these on a WebLocalFrame. | 532 // to call these on a WebLocalFrame. |
| 527 bool isWebLocalFrame() const override = 0; | 533 bool isWebLocalFrame() const override = 0; |
| 528 WebLocalFrame* toWebLocalFrame() override = 0; | 534 WebLocalFrame* toWebLocalFrame() override = 0; |
| 529 bool isWebRemoteFrame() const override = 0; | 535 bool isWebRemoteFrame() const override = 0; |
| 530 WebRemoteFrame* toWebRemoteFrame() override = 0; | 536 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 531 }; | 537 }; |
| 532 | 538 |
| 533 } // namespace blink | 539 } // namespace blink |
| 534 | 540 |
| 535 #endif // WebLocalFrame_h | 541 #endif // WebLocalFrame_h |
| OLD | NEW |