OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 InspectorEmulationAgent_h | 5 #ifndef InspectorEmulationAgent_h |
6 #define InspectorEmulationAgent_h | 6 #define InspectorEmulationAgent_h |
7 | 7 |
8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
9 #include "core/inspector/protocol/Emulation.h" | 9 #include "core/inspector/protocol/Emulation.h" |
10 #include "platform/WebTaskRunner.h" | 10 #include "platform/WebTaskRunner.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class WebLocalFrameImpl; | 14 class WebLocalFrameImpl; |
15 class WebViewImpl; | 15 class WebViewBase; |
16 | 16 |
17 namespace protocol { | 17 namespace protocol { |
18 namespace DOM { | 18 namespace DOM { |
19 class RGBA; | 19 class RGBA; |
20 } // namespace DOM | 20 } // namespace DOM |
21 } // namespace protocol | 21 } // namespace protocol |
22 | 22 |
23 class InspectorEmulationAgent final | 23 class InspectorEmulationAgent final |
24 : public InspectorBaseAgent<protocol::Emulation::Metainfo> { | 24 : public InspectorBaseAgent<protocol::Emulation::Metainfo> { |
25 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); | 25 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); |
(...skipping 27 matching lines...) Expand all Loading... |
53 protocol::Maybe<protocol::DOM::RGBA>) override; | 53 protocol::Maybe<protocol::DOM::RGBA>) override; |
54 | 54 |
55 // InspectorBaseAgent overrides. | 55 // InspectorBaseAgent overrides. |
56 protocol::Response disable() override; | 56 protocol::Response disable() override; |
57 void Restore() override; | 57 void Restore() override; |
58 | 58 |
59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
60 | 60 |
61 private: | 61 private: |
62 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); | 62 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); |
63 WebViewImpl* GetWebViewImpl(); | 63 WebViewBase* GetWebViewBase(); |
64 void VirtualTimeBudgetExpired(); | 64 void VirtualTimeBudgetExpired(); |
65 | 65 |
66 Member<WebLocalFrameImpl> web_local_frame_impl_; | 66 Member<WebLocalFrameImpl> web_local_frame_impl_; |
67 Client* client_; | 67 Client* client_; |
68 TaskHandle virtual_time_budget_expired_task_handle_; | 68 TaskHandle virtual_time_budget_expired_task_handle_; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace blink | 71 } // namespace blink |
72 | 72 |
73 #endif // !defined(InspectorEmulationAgent_h) | 73 #endif // !defined(InspectorEmulationAgent_h) |
OLD | NEW |