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