| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Navigation State ------------------------------------------------------- | 126 // Navigation State ------------------------------------------------------- |
| 127 | 127 |
| 128 // Returns true if the current frame's load event has not completed. | 128 // Returns true if the current frame's load event has not completed. |
| 129 virtual bool isLoading() const = 0; | 129 virtual bool isLoading() const = 0; |
| 130 | 130 |
| 131 // Returns true if any resource load is currently in progress. Exposed | 131 // Returns true if any resource load is currently in progress. Exposed |
| 132 // primarily for use in layout tests. You probably want isLoading() | 132 // primarily for use in layout tests. You probably want isLoading() |
| 133 // instead. | 133 // instead. |
| 134 virtual bool isResourceLoadInProgress() const = 0; | 134 virtual bool isResourceLoadInProgress() const = 0; |
| 135 | 135 |
| 136 // Returns true if there is a pending redirect or location change. | 136 // Returns true if there is a pending redirect or location change |
| 137 // This could be caused by: | 137 // within specified interval (in seconds). This could be caused by: |
| 138 // * an HTTP Refresh header | 138 // * an HTTP Refresh header |
| 139 // * an X-Frame-Options header | 139 // * an X-Frame-Options header |
| 140 // * the respective http-equiv meta tags | 140 // * the respective http-equiv meta tags |
| 141 // * window.location value being mutated | 141 // * window.location value being mutated |
| 142 // * CSP policy block | 142 // * CSP policy block |
| 143 // * reload | 143 // * reload |
| 144 // * form submission | 144 // * form submission |
| 145 virtual bool isNavigationScheduled() const = 0; | 145 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0
; |
| 146 | 146 |
| 147 // Override the normal rules for whether a load has successfully committed | 147 // Override the normal rules for whether a load has successfully committed |
| 148 // in this frame. Used to propagate state when this frame has navigated | 148 // in this frame. Used to propagate state when this frame has navigated |
| 149 // cross process. | 149 // cross process. |
| 150 virtual void setCommittedFirstRealLoad() = 0; | 150 virtual void setCommittedFirstRealLoad() = 0; |
| 151 | 151 |
| 152 // Orientation Changes ---------------------------------------------------- | 152 // Orientation Changes ---------------------------------------------------- |
| 153 | 153 |
| 154 // Notify the frame that the screen orientation has changed. | 154 // Notify the frame that the screen orientation has changed. |
| 155 virtual void sendOrientationChangeEvent() = 0; | 155 virtual void sendOrientationChangeEvent() = 0; |
| (...skipping 175 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 |