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