| 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 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class CancellableTaskFactory; | |
| 14 class WebLocalFrameImpl; | 14 class WebLocalFrameImpl; |
| 15 class WebViewImpl; | 15 class WebViewImpl; |
| 16 | 16 |
| 17 class InspectorEmulationAgent final | 17 class InspectorEmulationAgent final |
| 18 : public InspectorBaseAgent<protocol::Emulation::Metainfo> { | 18 : public InspectorBaseAgent<protocol::Emulation::Metainfo> { |
| 19 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); | 19 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 class Client { | 22 class Client { |
| 23 public: | 23 public: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); | 52 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); |
| 53 WebViewImpl* webViewImpl(); | 53 WebViewImpl* webViewImpl(); |
| 54 void virtualTimeBudgetExpired(); | 54 void virtualTimeBudgetExpired(); |
| 55 | 55 |
| 56 Member<WebLocalFrameImpl> m_webLocalFrameImpl; | 56 Member<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 57 Client* m_client; | 57 Client* m_client; |
| 58 std::unique_ptr<CancellableTaskFactory> m_virtualTimeBudgetExpiredTask; | 58 TaskHandle m_virtualTimeBudgetExpiredTaskHandle; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // !defined(InspectorEmulationAgent_h) | 63 #endif // !defined(InspectorEmulationAgent_h) |
| OLD | NEW |