| OLD | NEW |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 namespace protocol { | 69 namespace protocol { |
| 70 class Value; | 70 class Value; |
| 71 } | 71 } |
| 72 | 72 |
| 73 class WebDevToolsAgentImpl final | 73 class WebDevToolsAgentImpl final |
| 74 : public GarbageCollectedFinalized<WebDevToolsAgentImpl> | 74 : public GarbageCollectedFinalized<WebDevToolsAgentImpl> |
| 75 , public WebDevToolsAgent | 75 , public WebDevToolsAgent |
| 76 , public InspectorEmulationAgent::Client | 76 , public InspectorEmulationAgent::Client |
| 77 , public InspectorTracingAgent::Client | 77 , public InspectorTracingAgent::Client |
| 78 , public InspectorPageAgent::Client | 78 , public InspectorPageAgent::Client |
| 79 , public InspectorRuntimeAgent::Client | |
| 80 , public InspectorSession::Client | 79 , public InspectorSession::Client |
| 81 , private WebThread::TaskObserver { | 80 , private WebThread::TaskObserver { |
| 82 public: | 81 public: |
| 83 static WebDevToolsAgentImpl* create(WebLocalFrameImpl*, WebDevToolsAgentClie
nt*); | 82 static WebDevToolsAgentImpl* create(WebLocalFrameImpl*, WebDevToolsAgentClie
nt*); |
| 84 ~WebDevToolsAgentImpl() override; | 83 ~WebDevToolsAgentImpl() override; |
| 85 void dispose(); | 84 void dispose(); |
| 86 DECLARE_VIRTUAL_TRACE(); | 85 DECLARE_VIRTUAL_TRACE(); |
| 87 | 86 |
| 88 void willBeDestroyed(); | 87 void willBeDestroyed(); |
| 89 WebDevToolsAgentClient* client() { return m_client; } | 88 WebDevToolsAgentClient* client() { return m_client; } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 113 private: | 112 private: |
| 114 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, InspectorO
verlay*, bool includeViewAgents); | 113 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, InspectorO
verlay*, bool includeViewAgents); |
| 115 | 114 |
| 116 // InspectorTracingAgent::Client implementation. | 115 // InspectorTracingAgent::Client implementation. |
| 117 void enableTracing(const WTF::String& categoryFilter) override; | 116 void enableTracing(const WTF::String& categoryFilter) override; |
| 118 void disableTracing() override; | 117 void disableTracing() override; |
| 119 | 118 |
| 120 // InspectorEmulationAgent::Client implementation. | 119 // InspectorEmulationAgent::Client implementation. |
| 121 void setCPUThrottlingRate(double) override; | 120 void setCPUThrottlingRate(double) override; |
| 122 | 121 |
| 123 // InspectorRuntimeAgent::Client implementation. | |
| 124 void resumeStartup() override; | |
| 125 | |
| 126 // InspectorPageAgent::Client implementation. | 122 // InspectorPageAgent::Client implementation. |
| 127 void pageLayoutInvalidated(bool resized) override; | 123 void pageLayoutInvalidated(bool resized) override; |
| 128 void setPausedInDebuggerMessage(const String&) override; | 124 void setPausedInDebuggerMessage(const String&) override; |
| 129 void waitForCreateWindow(LocalFrame*) override; | 125 void waitForCreateWindow(LocalFrame*) override; |
| 130 | 126 |
| 131 // InspectorSession::Client implementation. | 127 // InspectorSession::Client implementation. |
| 132 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; | 128 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; |
| 129 void resumeStartup() override; |
| 130 void profilingStarted() override; |
| 131 void profilingStopped() override; |
| 133 | 132 |
| 134 // WebThread::TaskObserver implementation. | 133 // WebThread::TaskObserver implementation. |
| 135 void willProcessTask() override; | 134 void willProcessTask() override; |
| 136 void didProcessTask() override; | 135 void didProcessTask() override; |
| 137 | 136 |
| 138 void initializeSession(int sessionId, const String& hostId); | 137 void initializeSession(int sessionId, const String& hostId); |
| 139 void destroySession(); | 138 void destroySession(); |
| 140 | 139 |
| 141 friend class WebDevToolsAgent; | 140 friend class WebDevToolsAgent; |
| 142 static void runDebuggerTask(int sessionId, PassOwnPtr<WebDevToolsAgent::Mess
ageDescriptor>); | 141 static void runDebuggerTask(int sessionId, PassOwnPtr<WebDevToolsAgent::Mess
ageDescriptor>); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 163 Member<InspectorTracingAgent> m_tracingAgent; | 162 Member<InspectorTracingAgent> m_tracingAgent; |
| 164 | 163 |
| 165 Member<InspectorSession> m_session; | 164 Member<InspectorSession> m_session; |
| 166 bool m_includeViewAgents; | 165 bool m_includeViewAgents; |
| 167 int m_layerTreeId; | 166 int m_layerTreeId; |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace blink | 169 } // namespace blink |
| 171 | 170 |
| 172 #endif | 171 #endif |
| OLD | NEW |