Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.h

Issue 2514733002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (3) (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698