| 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 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 enum class WebAppBannerPromptReply; | 13 enum class WebAppBannerPromptReply; |
| 13 enum class WebSandboxFlags; | 14 enum class WebSandboxFlags; |
| 14 enum class WebTreeScopeType; | 15 enum class WebTreeScopeType; |
| 15 class WebAutofillClient; | 16 class WebAutofillClient; |
| 16 class WebContentSettingsClient; | 17 class WebContentSettingsClient; |
| 17 class WebDevToolsAgent; | 18 class WebDevToolsAgent; |
| 18 class WebDevToolsAgentClient; | 19 class WebDevToolsAgentClient; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString
& name, WebSandboxFlags) = 0; | 54 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString
& name, WebSandboxFlags) = 0; |
| 54 | 55 |
| 55 virtual void setAutofillClient(WebAutofillClient*) = 0; | 56 virtual void setAutofillClient(WebAutofillClient*) = 0; |
| 56 virtual WebAutofillClient* autofillClient() = 0; | 57 virtual WebAutofillClient* autofillClient() = 0; |
| 57 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 58 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
| 58 virtual WebDevToolsAgent* devToolsAgent() = 0; | 59 virtual WebDevToolsAgent* devToolsAgent() = 0; |
| 59 | 60 |
| 60 // Navigation Ping -------------------------------------------------------- | 61 // Navigation Ping -------------------------------------------------------- |
| 61 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; | 62 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) = 0; |
| 62 | 63 |
| 64 // Navigation ---------------------------------------------------------- |
| 65 |
| 66 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. |
| 67 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRe
quest::CachePolicy) |
| 68 const = 0; |
| 69 |
| 70 // Returns a WebURLRequest corresponding to the reload of the current |
| 71 // HistoryItem. |
| 72 virtual WebURLRequest requestForReload(WebFrameLoadType, |
| 73 const WebURL& overrideURL = WebURL()) const = 0; |
| 74 |
| 75 // Load the given URL. For history navigations, a valid WebHistoryItem |
| 76 // should be given, as well as a WebHistoryLoadType. |
| 77 // TODO(clamy): Remove the reload, reloadWithOverrideURL, loadHistoryItem |
| 78 // loadRequest functions in WebFrame once RenderFrame only calls loadRequest
. |
| 79 virtual void load(const WebURLRequest&, WebFrameLoadType = WebFrameLoadType:
:Standard, |
| 80 const WebHistoryItem& = WebHistoryItem(), |
| 81 WebHistoryLoadType = WebHistoryDifferentDocumentLoad) = 0; |
| 63 | 82 |
| 64 // Navigation State ------------------------------------------------------- | 83 // Navigation State ------------------------------------------------------- |
| 65 | 84 |
| 66 // Returns true if the current frame's load event has not completed. | 85 // Returns true if the current frame's load event has not completed. |
| 67 virtual bool isLoading() const = 0; | 86 virtual bool isLoading() const = 0; |
| 68 | 87 |
| 69 // Returns true if any resource load is currently in progress. Exposed | 88 // Returns true if any resource load is currently in progress. Exposed |
| 70 // primarily for use in layout tests. You probably want isLoading() | 89 // primarily for use in layout tests. You probably want isLoading() |
| 71 // instead. | 90 // instead. |
| 72 virtual bool isResourceLoadInProgress() const = 0; | 91 virtual bool isResourceLoadInProgress() const = 0; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual void reloadImage(const WebNode&) = 0; | 154 virtual void reloadImage(const WebNode&) = 0; |
| 136 | 155 |
| 137 protected: | 156 protected: |
| 138 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 157 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 139 }; | 158 }; |
| 140 | 159 |
| 141 } // namespace blink | 160 } // namespace blink |
| 142 | 161 |
| 143 #endif // WebLocalFrame_h | 162 #endif // WebLocalFrame_h |
| 144 | 163 |
| OLD | NEW |