| 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 #include "public/platform/WebURLError.h" |
| 14 #include "public/platform/site_engagement.mojom-shared.h" | 14 #include "public/platform/site_engagement.mojom-shared.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class WebAutofillClient; | 22 class WebAutofillClient; |
| 23 class WebContentSettingsClient; | 23 class WebContentSettingsClient; |
| 24 class WebDevToolsAgent; | 24 class WebDevToolsAgent; |
| 25 class WebDevToolsAgentClient; | 25 class WebDevToolsAgentClient; |
| 26 class WebDoubleSize; | 26 class WebDoubleSize; |
| 27 class WebFrameClient; | 27 class WebFrameClient; |
| 28 class WebFrameWidget; | 28 class WebFrameWidget; |
| 29 class WebInputMethodController; |
| 29 class WebRange; | 30 class WebRange; |
| 30 class WebScriptExecutionCallback; | 31 class WebScriptExecutionCallback; |
| 31 enum class WebCachePolicy; | 32 enum class WebCachePolicy; |
| 32 enum class WebSandboxFlags; | 33 enum class WebSandboxFlags; |
| 33 enum class WebTreeScopeType; | 34 enum class WebTreeScopeType; |
| 34 struct WebConsoleMessage; | 35 struct WebConsoleMessage; |
| 35 struct WebFindOptions; | 36 struct WebFindOptions; |
| 36 struct WebFloatRect; | 37 struct WebFloatRect; |
| 37 struct WebPrintPresetOptions; | 38 struct WebPrintPresetOptions; |
| 38 | 39 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; | 453 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; |
| 453 | 454 |
| 454 // Task queues -------------------------------------------------------------- | 455 // Task queues -------------------------------------------------------------- |
| 455 | 456 |
| 456 // Returns frame-specific task runner to run tasks of this type on. | 457 // Returns frame-specific task runner to run tasks of this type on. |
| 457 // They have the same lifetime as the frame. | 458 // They have the same lifetime as the frame. |
| 458 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; | 459 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; |
| 459 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; | 460 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; |
| 460 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; | 461 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; |
| 461 | 462 |
| 463 // Returns the WebInputMethodController associated with this local frame. |
| 464 virtual WebInputMethodController* inputMethodController() const = 0; |
| 465 |
| 462 protected: | 466 protected: |
| 463 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 467 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
| 464 | 468 |
| 465 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 469 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 466 // to call these on a WebLocalFrame. | 470 // to call these on a WebLocalFrame. |
| 467 bool isWebLocalFrame() const override = 0; | 471 bool isWebLocalFrame() const override = 0; |
| 468 WebLocalFrame* toWebLocalFrame() override = 0; | 472 WebLocalFrame* toWebLocalFrame() override = 0; |
| 469 bool isWebRemoteFrame() const override = 0; | 473 bool isWebRemoteFrame() const override = 0; |
| 470 WebRemoteFrame* toWebRemoteFrame() override = 0; | 474 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 471 }; | 475 }; |
| 472 | 476 |
| 473 } // namespace blink | 477 } // namespace blink |
| 474 | 478 |
| 475 #endif // WebLocalFrame_h | 479 #endif // WebLocalFrame_h |
| OLD | NEW |