| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 class WebFrameClient; | 40 class WebFrameClient; |
| 41 class WebFrameWidget; | 41 class WebFrameWidget; |
| 42 class WebFrameScheduler; | 42 class WebFrameScheduler; |
| 43 class WebInputMethodController; | 43 class WebInputMethodController; |
| 44 class WebRange; | 44 class WebRange; |
| 45 class WebSecurityOrigin; | 45 class WebSecurityOrigin; |
| 46 class WebScriptExecutionCallback; | 46 class WebScriptExecutionCallback; |
| 47 class WebSharedWorkerRepositoryClient; | 47 class WebSharedWorkerRepositoryClient; |
| 48 class WebSpellCheckPanelHostClient; | 48 class WebSpellCheckPanelHostClient; |
| 49 class WebTextCheckClient; | 49 class WebTextCheckClient; |
| 50 class WebURL; |
| 50 class WebURLLoader; | 51 class WebURLLoader; |
| 51 class WebView; | 52 class WebView; |
| 52 enum class WebTreeScopeType; | 53 enum class WebTreeScopeType; |
| 53 struct WebConsoleMessage; | 54 struct WebConsoleMessage; |
| 54 struct WebContentSecurityPolicyViolation; | 55 struct WebContentSecurityPolicyViolation; |
| 55 struct WebFindOptions; | 56 struct WebFindOptions; |
| 56 struct WebFloatRect; | 57 struct WebFloatRect; |
| 57 struct WebPrintParams; | 58 struct WebPrintParams; |
| 58 struct WebPrintPresetOptions; | 59 struct WebPrintPresetOptions; |
| 59 struct WebScriptSource; | 60 struct WebScriptSource; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 }; | 229 }; |
| 229 // On load failure, attempts to make frame's parent render fallback content. | 230 // On load failure, attempts to make frame's parent render fallback content. |
| 230 virtual FallbackContentResult MaybeRenderFallbackContent( | 231 virtual FallbackContentResult MaybeRenderFallbackContent( |
| 231 const WebURLError&) const = 0; | 232 const WebURLError&) const = 0; |
| 232 | 233 |
| 233 // Called when a navigation is blocked because a Content Security Policy (CSP) | 234 // Called when a navigation is blocked because a Content Security Policy (CSP) |
| 234 // is infringed. | 235 // is infringed. |
| 235 virtual void ReportContentSecurityPolicyViolation( | 236 virtual void ReportContentSecurityPolicyViolation( |
| 236 const blink::WebContentSecurityPolicyViolation&) = 0; | 237 const blink::WebContentSecurityPolicyViolation&) = 0; |
| 237 | 238 |
| 239 // Sets the referrer for the given request to be the specified URL or |
| 240 // if that is null, then it sets the referrer to the referrer that the |
| 241 // frame would use for subresources. NOTE: This method also filters |
| 242 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as |
| 243 // the referrer for a HTTP request). |
| 244 virtual void SetReferrerForRequest(WebURLRequest&, const WebURL&) = 0; |
| 245 |
| 238 // Navigation State ------------------------------------------------------- | 246 // Navigation State ------------------------------------------------------- |
| 239 | 247 |
| 240 // Returns true if the current frame's load event has not completed. | 248 // Returns true if the current frame's load event has not completed. |
| 241 virtual bool IsLoading() const = 0; | 249 virtual bool IsLoading() const = 0; |
| 242 | 250 |
| 243 // Returns true if there is a pending redirect or location change | 251 // Returns true if there is a pending redirect or location change |
| 244 // within specified interval (in seconds). This could be caused by: | 252 // within specified interval (in seconds). This could be caused by: |
| 245 // * an HTTP Refresh header | 253 // * an HTTP Refresh header |
| 246 // * an X-Frame-Options header | 254 // * an X-Frame-Options header |
| 247 // * the respective http-equiv meta tags | 255 // * the respective http-equiv meta tags |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 // to call these on a WebLocalFrame. | 783 // to call these on a WebLocalFrame. |
| 776 bool IsWebLocalFrame() const override = 0; | 784 bool IsWebLocalFrame() const override = 0; |
| 777 WebLocalFrame* ToWebLocalFrame() override = 0; | 785 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 778 bool IsWebRemoteFrame() const override = 0; | 786 bool IsWebRemoteFrame() const override = 0; |
| 779 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 787 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 780 }; | 788 }; |
| 781 | 789 |
| 782 } // namespace blink | 790 } // namespace blink |
| 783 | 791 |
| 784 #endif // WebLocalFrame_h | 792 #endif // WebLocalFrame_h |
| OLD | NEW |