| 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 "WebFrame.h" | 8 #include "WebFrame.h" |
| 9 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 enum class WebAppBannerPromptReply; | |
| 14 enum class WebSandboxFlags; | |
| 15 enum class WebTreeScopeType; | |
| 16 class WebAutofillClient; | 13 class WebAutofillClient; |
| 17 class WebContentSettingsClient; | 14 class WebContentSettingsClient; |
| 18 class WebDevToolsAgent; | 15 class WebDevToolsAgent; |
| 19 class WebDevToolsAgentClient; | 16 class WebDevToolsAgentClient; |
| 20 class WebFrameClient; | 17 class WebFrameClient; |
| 21 class WebNode; | 18 class WebNode; |
| 22 class WebScriptExecutionCallback; | 19 class WebScriptExecutionCallback; |
| 23 class WebSuspendableTask; | 20 class WebSuspendableTask; |
| 24 class WebTestInterfaceFactory; | 21 class WebTestInterfaceFactory; |
| 22 enum class WebAppBannerPromptReply; |
| 23 enum class WebCachePolicy; |
| 24 enum class WebSandboxFlags; |
| 25 enum class WebTreeScopeType; |
| 25 struct WebPrintPresetOptions; | 26 struct WebPrintPresetOptions; |
| 26 | 27 |
| 27 // Interface for interacting with in process frames. This contains methods that | 28 // Interface for interacting with in process frames. This contains methods that |
| 28 // require interacting with a frame's document. | 29 // require interacting with a frame's document. |
| 29 // FIXME: Move lots of methods from WebFrame in here. | 30 // FIXME: Move lots of methods from WebFrame in here. |
| 30 class WebLocalFrame : public WebFrame { | 31 class WebLocalFrame : public WebFrame { |
| 31 public: | 32 public: |
| 32 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). | 33 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). |
| 33 // It is valid to pass a null client pointer. | 34 // It is valid to pass a null client pointer. |
| 34 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*,
WebFrame* opener = nullptr); | 35 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*,
WebFrame* opener = nullptr); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; | 81 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; |
| 81 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; | 82 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; |
| 82 | 83 |
| 83 // Navigation Ping -------------------------------------------------------- | 84 // Navigation Ping -------------------------------------------------------- |
| 84 | 85 |
| 85 virtual void sendPings(const WebNode& contextNode, const WebURL& destination
URL) = 0; | 86 virtual void sendPings(const WebNode& contextNode, const WebURL& destination
URL) = 0; |
| 86 | 87 |
| 87 // Navigation ---------------------------------------------------------- | 88 // Navigation ---------------------------------------------------------- |
| 88 | 89 |
| 89 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. | 90 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. |
| 90 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRe
quest::CachePolicy) | 91 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCache
Policy) const = 0; |
| 91 const = 0; | |
| 92 | 92 |
| 93 // Returns a WebURLRequest corresponding to the reload of the current | 93 // Returns a WebURLRequest corresponding to the reload of the current |
| 94 // HistoryItem. | 94 // HistoryItem. |
| 95 virtual WebURLRequest requestForReload(WebFrameLoadType, | 95 virtual WebURLRequest requestForReload(WebFrameLoadType, |
| 96 const WebURL& overrideURL = WebURL()) const = 0; | 96 const WebURL& overrideURL = WebURL()) const = 0; |
| 97 | 97 |
| 98 // Load the given URL. For history navigations, a valid WebHistoryItem | 98 // Load the given URL. For history navigations, a valid WebHistoryItem |
| 99 // should be given, as well as a WebHistoryLoadType. | 99 // should be given, as well as a WebHistoryLoadType. |
| 100 // TODO(clamy): Remove the reload, reloadWithOverrideURL, loadHistoryItem | 100 // TODO(clamy): Remove the reload, reloadWithOverrideURL, loadHistoryItem |
| 101 // loadRequest functions in WebFrame once RenderFrame only calls loadRequest
. | 101 // loadRequest functions in WebFrame once RenderFrame only calls loadRequest
. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // to call these on a WebLocalFrame. | 331 // to call these on a WebLocalFrame. |
| 332 bool isWebLocalFrame() const override = 0; | 332 bool isWebLocalFrame() const override = 0; |
| 333 WebLocalFrame* toWebLocalFrame() override = 0; | 333 WebLocalFrame* toWebLocalFrame() override = 0; |
| 334 bool isWebRemoteFrame() const override = 0; | 334 bool isWebRemoteFrame() const override = 0; |
| 335 WebRemoteFrame* toWebRemoteFrame() override = 0; | 335 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace blink | 338 } // namespace blink |
| 339 | 339 |
| 340 #endif // WebLocalFrame_h | 340 #endif // WebLocalFrame_h |
| OLD | NEW |