| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
| 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Returns agent instance for its routing id. | 39 // Returns agent instance for its routing id. |
| 40 static DevToolsAgent* FromRoutingId(int routing_id); | 40 static DevToolsAgent* FromRoutingId(int routing_id); |
| 41 | 41 |
| 42 blink::WebDevToolsAgent* GetWebAgent(); | 42 blink::WebDevToolsAgent* GetWebAgent(); |
| 43 | 43 |
| 44 bool IsAttached(); | 44 bool IsAttached(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 // RenderView::Observer implementation. | 47 // RenderView::Observer implementation. |
| 48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 48 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 49 | 49 |
| 50 // WebDevToolsAgentClient implementation | 50 // WebDevToolsAgentClient implementation |
| 51 virtual void sendMessageToInspectorFrontend(const blink::WebString& data); | 51 virtual void sendMessageToInspectorFrontend(const blink::WebString& data); |
| 52 | 52 |
| 53 virtual long processId() OVERRIDE; | 53 virtual long processId() override; |
| 54 virtual int debuggerId() OVERRIDE; | 54 virtual int debuggerId() override; |
| 55 virtual void saveAgentRuntimeState(const blink::WebString& state) OVERRIDE; | 55 virtual void saveAgentRuntimeState(const blink::WebString& state) override; |
| 56 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop* | 56 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop* |
| 57 createClientMessageLoop() OVERRIDE; | 57 createClientMessageLoop() override; |
| 58 virtual void willEnterDebugLoop() OVERRIDE; | 58 virtual void willEnterDebugLoop() override; |
| 59 virtual void didExitDebugLoop() OVERRIDE; | 59 virtual void didExitDebugLoop() override; |
| 60 | 60 |
| 61 typedef void (*TraceEventCallback)( | 61 typedef void (*TraceEventCallback)( |
| 62 char phase, const unsigned char*, const char* name, unsigned long long id, | 62 char phase, const unsigned char*, const char* name, unsigned long long id, |
| 63 int numArgs, const char* const* argNames, const unsigned char* argTypes, | 63 int numArgs, const char* const* argNames, const unsigned char* argTypes, |
| 64 const unsigned long long* argValues, | 64 const unsigned long long* argValues, |
| 65 unsigned char flags, double timestamp); | 65 unsigned char flags, double timestamp); |
| 66 virtual void resetTraceEventCallback() OVERRIDE; | 66 virtual void resetTraceEventCallback() override; |
| 67 virtual void setTraceEventCallback(const blink::WebString& category_filter, | 67 virtual void setTraceEventCallback(const blink::WebString& category_filter, |
| 68 TraceEventCallback cb) OVERRIDE; | 68 TraceEventCallback cb) override; |
| 69 virtual void enableTracing(const blink::WebString& category_filter) OVERRIDE; | 69 virtual void enableTracing(const blink::WebString& category_filter) override; |
| 70 virtual void disableTracing() OVERRIDE; | 70 virtual void disableTracing() override; |
| 71 virtual void startGPUEventsRecording() OVERRIDE; | 71 virtual void startGPUEventsRecording() override; |
| 72 virtual void stopGPUEventsRecording() OVERRIDE; | 72 virtual void stopGPUEventsRecording() override; |
| 73 | 73 |
| 74 virtual void enableDeviceEmulation( | 74 virtual void enableDeviceEmulation( |
| 75 const blink::WebDeviceEmulationParams& params) OVERRIDE; | 75 const blink::WebDeviceEmulationParams& params) override; |
| 76 virtual void disableDeviceEmulation() OVERRIDE; | 76 virtual void disableDeviceEmulation() override; |
| 77 | 77 |
| 78 void OnAttach(const std::string& host_id); | 78 void OnAttach(const std::string& host_id); |
| 79 void OnReattach(const std::string& host_id, | 79 void OnReattach(const std::string& host_id, |
| 80 const std::string& agent_state); | 80 const std::string& agent_state); |
| 81 void OnDetach(); | 81 void OnDetach(); |
| 82 void OnDispatchOnInspectorBackend(const std::string& message); | 82 void OnDispatchOnInspectorBackend(const std::string& message); |
| 83 void OnInspectElement(const std::string& host_id, int x, int y); | 83 void OnInspectElement(const std::string& host_id, int x, int y); |
| 84 void OnAddMessageToConsole(ConsoleMessageLevel level, | 84 void OnAddMessageToConsole(ConsoleMessageLevel level, |
| 85 const std::string& message); | 85 const std::string& message); |
| 86 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks); | 86 void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 105 bool paused_in_mouse_move_; | 105 bool paused_in_mouse_move_; |
| 106 | 106 |
| 107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; | 107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace content | 112 } // namespace content |
| 113 | 113 |
| 114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
| OLD | NEW |