| 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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // On load failure, attempts to make frame's parent rendering fallback content | 126 // On load failure, attempts to make frame's parent rendering fallback content |
| 127 // and stop this frame loading. | 127 // and stop this frame loading. |
| 128 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0; | 128 virtual bool maybeRenderFallbackContent(const WebURLError&) const = 0; |
| 129 | 129 |
| 130 // Navigation State ------------------------------------------------------- | 130 // Navigation State ------------------------------------------------------- |
| 131 | 131 |
| 132 // Returns true if the current frame's load event has not completed. | 132 // Returns true if the current frame's load event has not completed. |
| 133 virtual bool isLoading() const = 0; | 133 virtual bool isLoading() const = 0; |
| 134 | 134 |
| 135 // Returns true if the current frame is detaching/detached. crbug.com/654654 | |
| 136 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() | |
| 137 const = 0; | |
| 138 | |
| 139 // Returns true if there is a pending redirect or location change | 135 // Returns true if there is a pending redirect or location change |
| 140 // within specified interval (in seconds). This could be caused by: | 136 // within specified interval (in seconds). This could be caused by: |
| 141 // * an HTTP Refresh header | 137 // * an HTTP Refresh header |
| 142 // * an X-Frame-Options header | 138 // * an X-Frame-Options header |
| 143 // * the respective http-equiv meta tags | 139 // * the respective http-equiv meta tags |
| 144 // * window.location value being mutated | 140 // * window.location value being mutated |
| 145 // * CSP policy block | 141 // * CSP policy block |
| 146 // * reload | 142 // * reload |
| 147 // * form submission | 143 // * form submission |
| 148 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; | 144 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // to call these on a WebLocalFrame. | 450 // to call these on a WebLocalFrame. |
| 455 bool isWebLocalFrame() const override = 0; | 451 bool isWebLocalFrame() const override = 0; |
| 456 WebLocalFrame* toWebLocalFrame() override = 0; | 452 WebLocalFrame* toWebLocalFrame() override = 0; |
| 457 bool isWebRemoteFrame() const override = 0; | 453 bool isWebRemoteFrame() const override = 0; |
| 458 WebRemoteFrame* toWebRemoteFrame() override = 0; | 454 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 459 }; | 455 }; |
| 460 | 456 |
| 461 } // namespace blink | 457 } // namespace blink |
| 462 | 458 |
| 463 #endif // WebLocalFrame_h | 459 #endif // WebLocalFrame_h |
| OLD | NEW |