| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 WebFrameLoadType = WebFrameLoadType::Standard, | 121 WebFrameLoadType = WebFrameLoadType::Standard, |
| 122 const WebHistoryItem& = WebHistoryItem(), | 122 const WebHistoryItem& = WebHistoryItem(), |
| 123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, | 123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, |
| 124 bool isClientRedirect = false) = 0; | 124 bool isClientRedirect = false) = 0; |
| 125 | 125 |
| 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 the current frame is detaching/detached. crbug.com/654654 |
| 132 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() |
| 133 const = 0; |
| 134 |
| 131 // Returns true if there is a pending redirect or location change | 135 // Returns true if there is a pending redirect or location change |
| 132 // within specified interval (in seconds). This could be caused by: | 136 // within specified interval (in seconds). This could be caused by: |
| 133 // * an HTTP Refresh header | 137 // * an HTTP Refresh header |
| 134 // * an X-Frame-Options header | 138 // * an X-Frame-Options header |
| 135 // * the respective http-equiv meta tags | 139 // * the respective http-equiv meta tags |
| 136 // * window.location value being mutated | 140 // * window.location value being mutated |
| 137 // * CSP policy block | 141 // * CSP policy block |
| 138 // * reload | 142 // * reload |
| 139 // * form submission | 143 // * form submission |
| 140 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; | 144 virtual bool isNavigationScheduledWithin(double intervalInSeconds) const = 0; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // to call these on a WebLocalFrame. | 453 // to call these on a WebLocalFrame. |
| 450 bool isWebLocalFrame() const override = 0; | 454 bool isWebLocalFrame() const override = 0; |
| 451 WebLocalFrame* toWebLocalFrame() override = 0; | 455 WebLocalFrame* toWebLocalFrame() override = 0; |
| 452 bool isWebRemoteFrame() const override = 0; | 456 bool isWebRemoteFrame() const override = 0; |
| 453 WebRemoteFrame* toWebRemoteFrame() override = 0; | 457 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 454 }; | 458 }; |
| 455 | 459 |
| 456 } // namespace blink | 460 } // namespace blink |
| 457 | 461 |
| 458 #endif // WebLocalFrame_h | 462 #endif // WebLocalFrame_h |
| OLD | NEW |