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

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

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebDevToolsAgentImpl_h 32 #define WebDevToolsAgentImpl_h
33 33
34 #include "core/inspector/InspectorFrontendChannel.h" 34 #include "core/inspector/InspectorFrontendChannel.h"
35 #include "core/inspector/InspectorRuntimeAgent.h" 35 #include "core/inspector/InspectorRuntimeAgent.h"
36 #include "core/inspector/InspectorStateClient.h" 36 #include "core/inspector/InspectorStateClient.h"
37 #include "core/inspector/InspectorTracingAgent.h" 37 #include "core/inspector/InspectorTracingAgent.h"
38 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
39 #include "public/platform/WebSize.h" 39 #include "public/platform/WebSize.h"
40 #include "public/platform/WebThread.h" 40 #include "public/platform/WebThread.h"
41 #include "public/web/WebDevToolsAgent.h" 41 #include "public/web/WebDevToolsAgent.h"
42 #include "web/InspectorEmulationAgent.h"
42 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
43 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
44 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
45 46
46 namespace blink { 47 namespace blink {
47 48
48 class DebuggerTask; 49 class DebuggerTask;
49 class GraphicsLayer; 50 class GraphicsLayer;
50 class InspectedFrames; 51 class InspectedFrames;
51 class InspectorInspectorAgent; 52 class InspectorInspectorAgent;
(...skipping 12 matching lines...) Expand all
64 class WebInputEvent; 65 class WebInputEvent;
65 class WebLayerTreeView; 66 class WebLayerTreeView;
66 class WebLocalFrameImpl; 67 class WebLocalFrameImpl;
67 class WebString; 68 class WebString;
68 class WebViewImpl; 69 class WebViewImpl;
69 70
70 class WebDevToolsAgentImpl final 71 class WebDevToolsAgentImpl final
71 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> 72 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl>
72 , public WebDevToolsAgent 73 , public WebDevToolsAgent
73 , public InspectorStateClient 74 , public InspectorStateClient
75 , public InspectorEmulationAgent::Client
74 , public InspectorTracingAgent::Client 76 , public InspectorTracingAgent::Client
75 , public InspectorRuntimeAgent::Client 77 , public InspectorRuntimeAgent::Client
76 , public InspectorFrontendChannel 78 , public InspectorFrontendChannel
77 , private WebThread::TaskObserver { 79 , private WebThread::TaskObserver {
78 public: 80 public:
79 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl *, WebDevToolsAgentClient*); 81 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl *, WebDevToolsAgentClient*);
80 ~WebDevToolsAgentImpl() override; 82 ~WebDevToolsAgentImpl() override;
81 void dispose(); 83 void dispose();
82 DECLARE_VIRTUAL_TRACE(); 84 DECLARE_VIRTUAL_TRACE();
83 85
(...skipping 26 matching lines...) Expand all
110 private: 112 private:
111 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr WillBeRawPtr<InspectorOverlay>); 113 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr WillBeRawPtr<InspectorOverlay>);
112 114
113 // InspectorStateClient implementation. 115 // InspectorStateClient implementation.
114 void updateInspectorStateCookie(const WTF::String&) override; 116 void updateInspectorStateCookie(const WTF::String&) override;
115 117
116 // InspectorTracingAgent::Client implementation. 118 // InspectorTracingAgent::Client implementation.
117 void enableTracing(const WTF::String& categoryFilter) override; 119 void enableTracing(const WTF::String& categoryFilter) override;
118 void disableTracing() override; 120 void disableTracing() override;
119 121
122 // InspectorEmulationAgent::Client implementation.
123 void setCPUThrottlingRate(double) override;
124
120 // InspectorRuntimeAgent::Client implementation. 125 // InspectorRuntimeAgent::Client implementation.
121 void resumeStartup() override; 126 void resumeStartup() override;
122 127
123 // InspectorFrontendChannel implementation. 128 // InspectorFrontendChannel implementation.
124 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override; 129 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override;
125 void sendProtocolNotification(PassRefPtr<JSONObject> message) override; 130 void sendProtocolNotification(PassRefPtr<JSONObject> message) override;
126 void flush() override; 131 void flush() override;
127 132
128 // WebThread::TaskObserver implementation. 133 // WebThread::TaskObserver implementation.
129 void willProcessTask() override; 134 void willProcessTask() override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 NotificationQueue m_notificationQueue; 168 NotificationQueue m_notificationQueue;
164 int m_sessionId; 169 int m_sessionId;
165 String m_stateCookie; 170 String m_stateCookie;
166 171
167 friend class DebuggerTask; 172 friend class DebuggerTask;
168 }; 173 };
169 174
170 } // namespace blink 175 } // namespace blink
171 176
172 #endif 177 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.cpp ('k') | third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698