| 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" |
| 11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
| 12 #include "public/platform/WebCachePolicy.h" | 12 #include "public/platform/WebCachePolicy.h" |
| 13 #include "public/platform/WebURLError.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class WebAutofillClient; | 17 class WebAutofillClient; |
| 17 class WebContentSettingsClient; | 18 class WebContentSettingsClient; |
| 18 class WebDevToolsAgent; | 19 class WebDevToolsAgent; |
| 19 class WebDevToolsAgentClient; | 20 class WebDevToolsAgentClient; |
| 20 class WebDoubleSize; | 21 class WebDoubleSize; |
| 21 class WebFrameClient; | 22 class WebFrameClient; |
| 22 class WebFrameWidget; | 23 class WebFrameWidget; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 WebFrameLoadType = WebFrameLoadType::Standard, | 122 WebFrameLoadType = WebFrameLoadType::Standard, |
| 122 const WebHistoryItem& = WebHistoryItem(), | 123 const WebHistoryItem& = WebHistoryItem(), |
| 123 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, | 124 WebHistoryLoadType = WebHistoryDifferentDocumentLoad, |
| 124 bool isClientRedirect = false) = 0; | 125 bool isClientRedirect = false) = 0; |
| 125 | 126 |
| 126 // Check if the frame's parent can render fallback content on load failure. | 127 // Check if the frame's parent can render fallback content on load failure. |
| 127 virtual bool canRenderFallbackContent() const = 0; | 128 virtual bool canRenderFallbackContent() const = 0; |
| 128 | 129 |
| 129 // Allow the embedders to report that a navigation they handle has failed. The | 130 // Allow the embedders to report that a navigation they handle has failed. The |
| 130 // frame's parent will display fallback content, if possible. | 131 // frame's parent will display fallback content, if possible. |
| 131 virtual void loadFailed() = 0; | 132 virtual void loadFailed(const WebURLError&) = 0; |
| 132 | 133 |
| 133 // Navigation State ------------------------------------------------------- | 134 // Navigation State ------------------------------------------------------- |
| 134 | 135 |
| 135 // Returns true if the current frame's load event has not completed. | 136 // Returns true if the current frame's load event has not completed. |
| 136 virtual bool isLoading() const = 0; | 137 virtual bool isLoading() const = 0; |
| 137 | 138 |
| 138 // Returns true if the current frame is detaching/detached. crbug.com/654654 | 139 // Returns true if the current frame is detaching/detached. crbug.com/654654 |
| 139 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() | 140 virtual bool isFrameDetachedForSpecialOneOffStopTheCrashingHackBug561873() |
| 140 const = 0; | 141 const = 0; |
| 141 | 142 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // to call these on a WebLocalFrame. | 469 // to call these on a WebLocalFrame. |
| 469 bool isWebLocalFrame() const override = 0; | 470 bool isWebLocalFrame() const override = 0; |
| 470 WebLocalFrame* toWebLocalFrame() override = 0; | 471 WebLocalFrame* toWebLocalFrame() override = 0; |
| 471 bool isWebRemoteFrame() const override = 0; | 472 bool isWebRemoteFrame() const override = 0; |
| 472 WebRemoteFrame* toWebRemoteFrame() override = 0; | 473 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 473 }; | 474 }; |
| 474 | 475 |
| 475 } // namespace blink | 476 } // namespace blink |
| 476 | 477 |
| 477 #endif // WebLocalFrame_h | 478 #endif // WebLocalFrame_h |
| OLD | NEW |