| 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 <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class WebContentSettingsClient; | 27 class WebContentSettingsClient; |
| 28 class WebDevToolsAgent; | 28 class WebDevToolsAgent; |
| 29 class WebDevToolsAgentClient; | 29 class WebDevToolsAgentClient; |
| 30 class WebDoubleSize; | 30 class WebDoubleSize; |
| 31 class WebFrameClient; | 31 class WebFrameClient; |
| 32 class WebFrameWidget; | 32 class WebFrameWidget; |
| 33 class WebInputMethodController; | 33 class WebInputMethodController; |
| 34 class WebRange; | 34 class WebRange; |
| 35 class WebScriptExecutionCallback; | 35 class WebScriptExecutionCallback; |
| 36 class WebTextCheckClient; | 36 class WebTextCheckClient; |
| 37 class WebURLLoader; |
| 37 enum class WebCachePolicy; | 38 enum class WebCachePolicy; |
| 38 enum class WebSandboxFlags; | 39 enum class WebSandboxFlags; |
| 39 enum class WebTreeScopeType; | 40 enum class WebTreeScopeType; |
| 40 struct WebConsoleMessage; | 41 struct WebConsoleMessage; |
| 41 struct WebContentSecurityPolicyViolation; | 42 struct WebContentSecurityPolicyViolation; |
| 42 struct WebFindOptions; | 43 struct WebFindOptions; |
| 43 struct WebFloatRect; | 44 struct WebFloatRect; |
| 44 struct WebPrintPresetOptions; | 45 struct WebPrintPresetOptions; |
| 45 struct WebSourceLocation; | 46 struct WebSourceLocation; |
| 46 | 47 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 534 |
| 534 // Returns frame-specific task runner to run tasks of this type on. | 535 // Returns frame-specific task runner to run tasks of this type on. |
| 535 // They have the same lifetime as the frame. | 536 // They have the same lifetime as the frame. |
| 536 virtual base::SingleThreadTaskRunner* TimerTaskRunner() = 0; | 537 virtual base::SingleThreadTaskRunner* TimerTaskRunner() = 0; |
| 537 virtual base::SingleThreadTaskRunner* LoadingTaskRunner() = 0; | 538 virtual base::SingleThreadTaskRunner* LoadingTaskRunner() = 0; |
| 538 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; | 539 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; |
| 539 | 540 |
| 540 // Returns the WebInputMethodController associated with this local frame. | 541 // Returns the WebInputMethodController associated with this local frame. |
| 541 virtual WebInputMethodController* GetInputMethodController() const = 0; | 542 virtual WebInputMethodController* GetInputMethodController() const = 0; |
| 542 | 543 |
| 544 // Loading ------------------------------------------------------------------ |
| 545 // Creates and returns a loader. This function can be called only when this |
| 546 // frame is attached to a document. |
| 547 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
| 548 |
| 543 protected: | 549 protected: |
| 544 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 550 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
| 545 | 551 |
| 546 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 552 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 547 // to call these on a WebLocalFrame. | 553 // to call these on a WebLocalFrame. |
| 548 bool IsWebLocalFrame() const override = 0; | 554 bool IsWebLocalFrame() const override = 0; |
| 549 WebLocalFrame* ToWebLocalFrame() override = 0; | 555 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 550 bool IsWebRemoteFrame() const override = 0; | 556 bool IsWebRemoteFrame() const override = 0; |
| 551 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 557 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 552 }; | 558 }; |
| 553 | 559 |
| 554 } // namespace blink | 560 } // namespace blink |
| 555 | 561 |
| 556 #endif // WebLocalFrame_h | 562 #endif // WebLocalFrame_h |
| OLD | NEW |