Chromium Code Reviews| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 495 | 495 |
| 496 // Returns frame-specific task runner to run tasks of this type on. | 496 // Returns frame-specific task runner to run tasks of this type on. |
| 497 // They have the same lifetime as the frame. | 497 // They have the same lifetime as the frame. |
| 498 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; | 498 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; |
| 499 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; | 499 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; |
| 500 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; | 500 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; |
| 501 | 501 |
| 502 // Returns the WebInputMethodController associated with this local frame. | 502 // Returns the WebInputMethodController associated with this local frame. |
| 503 virtual WebInputMethodController* inputMethodController() const = 0; | 503 virtual WebInputMethodController* inputMethodController() const = 0; |
| 504 | 504 |
| 505 // Tracing support ---------------------------------------------------------- | |
| 506 // Returns the value for the "frame" argument in TRACE_EVENT* calls. | |
| 507 // This function is intended to be used in components that do not have | |
| 508 // access to the local frame, but still want to trace frame related events. | |
| 509 virtual void* frameIdForTracing() const = 0; | |
|
ulan
2017/02/22 21:16:37
This is not really nice. I would appreciate better
haraken
2017/02/22 23:56:21
In practice, this will work because Oilpan's compa
| |
| 510 | |
| 505 protected: | 511 protected: |
| 506 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 512 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
| 507 | 513 |
| 508 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 514 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 509 // to call these on a WebLocalFrame. | 515 // to call these on a WebLocalFrame. |
| 510 bool isWebLocalFrame() const override = 0; | 516 bool isWebLocalFrame() const override = 0; |
| 511 WebLocalFrame* toWebLocalFrame() override = 0; | 517 WebLocalFrame* toWebLocalFrame() override = 0; |
| 512 bool isWebRemoteFrame() const override = 0; | 518 bool isWebRemoteFrame() const override = 0; |
| 513 WebRemoteFrame* toWebRemoteFrame() override = 0; | 519 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 514 }; | 520 }; |
| 515 | 521 |
| 516 } // namespace blink | 522 } // namespace blink |
| 517 | 523 |
| 518 #endif // WebLocalFrame_h | 524 #endif // WebLocalFrame_h |
| OLD | NEW |