| 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 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // optionally wrapping around. | 71 // optionally wrapping around. |
| 72 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; | 72 virtual WebLocalFrame* traversePreviousLocal(bool wrap) const = 0; |
| 73 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; | 73 virtual WebLocalFrame* traverseNextLocal(bool wrap) const = 0; |
| 74 | 74 |
| 75 // Navigation Ping -------------------------------------------------------- | 75 // Navigation Ping -------------------------------------------------------- |
| 76 | 76 |
| 77 virtual void sendPings(const WebURL& destinationURL) = 0; | 77 virtual void sendPings(const WebURL& destinationURL) = 0; |
| 78 | 78 |
| 79 // Navigation ---------------------------------------------------------- | 79 // Navigation ---------------------------------------------------------- |
| 80 | 80 |
| 81 // Runs beforeunload handlers for this frame and returns the value returned |
| 82 // by handlers. |
| 83 // Note: this may lead to the destruction of the frame. |
| 84 virtual bool dispatchBeforeUnloadEvent(bool isReload) = 0; |
| 85 |
| 81 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. | 86 // Returns a WebURLRequest corresponding to the load of the WebHistoryItem. |
| 82 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCache
Policy) const = 0; | 87 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebCache
Policy) const = 0; |
| 83 | 88 |
| 84 // Returns a WebURLRequest corresponding to the reload of the current | 89 // Returns a WebURLRequest corresponding to the reload of the current |
| 85 // HistoryItem. | 90 // HistoryItem. |
| 86 virtual WebURLRequest requestForReload(WebFrameLoadType, | 91 virtual WebURLRequest requestForReload(WebFrameLoadType, |
| 87 const WebURL& overrideURL = WebURL()) const = 0; | 92 const WebURL& overrideURL = WebURL()) const = 0; |
| 88 | 93 |
| 89 // Load the given URL. For history navigations, a valid WebHistoryItem | 94 // Load the given URL. For history navigations, a valid WebHistoryItem |
| 90 // should be given, as well as a WebHistoryLoadType. | 95 // should be given, as well as a WebHistoryLoadType. |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // to call these on a WebLocalFrame. | 324 // to call these on a WebLocalFrame. |
| 320 bool isWebLocalFrame() const override = 0; | 325 bool isWebLocalFrame() const override = 0; |
| 321 WebLocalFrame* toWebLocalFrame() override = 0; | 326 WebLocalFrame* toWebLocalFrame() override = 0; |
| 322 bool isWebRemoteFrame() const override = 0; | 327 bool isWebRemoteFrame() const override = 0; |
| 323 WebRemoteFrame* toWebRemoteFrame() override = 0; | 328 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 324 }; | 329 }; |
| 325 | 330 |
| 326 } // namespace blink | 331 } // namespace blink |
| 327 | 332 |
| 328 #endif // WebLocalFrame_h | 333 #endif // WebLocalFrame_h |
| OLD | NEW |