| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 createClientMessageLoop(); | 56 createClientMessageLoop(); |
| 57 virtual void clearBrowserCache(); | 57 virtual void clearBrowserCache(); |
| 58 virtual void clearBrowserCookies(); | 58 virtual void clearBrowserCookies(); |
| 59 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor); | 59 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor); |
| 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 setTraceEventCallback(TraceEventCallback cb) OVERRIDE; | 66 virtual void resetTraceEventCallback(); |
| 67 virtual void setTraceEventCallback(const blink::WebString& category_filter, |
| 68 TraceEventCallback cb); |
| 69 // FIXME: this overload is obsolete, drop it and add OVERRIDE to the above. |
| 70 virtual void setTraceEventCallback(TraceEventCallback cb); |
| 67 virtual void startGPUEventsRecording() OVERRIDE; | 71 virtual void startGPUEventsRecording() OVERRIDE; |
| 68 virtual void stopGPUEventsRecording() OVERRIDE; | 72 virtual void stopGPUEventsRecording() OVERRIDE; |
| 69 | 73 |
| 70 virtual void enableDeviceEmulation( | 74 virtual void enableDeviceEmulation( |
| 71 const blink::WebRect& device_rect, | 75 const blink::WebRect& device_rect, |
| 72 const blink::WebRect& view_rect, float device_scale_factor, | 76 const blink::WebRect& view_rect, float device_scale_factor, |
| 73 bool fit_to_view); | 77 bool fit_to_view); |
| 74 virtual void disableDeviceEmulation(); | 78 virtual void disableDeviceEmulation(); |
| 75 | 79 |
| 76 void OnAttach(); | 80 void OnAttach(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 101 int32 gpu_route_id_; | 105 int32 gpu_route_id_; |
| 102 | 106 |
| 103 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; | 107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; |
| 104 | 108 |
| 105 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 106 }; | 110 }; |
| 107 | 111 |
| 108 } // namespace content | 112 } // namespace content |
| 109 | 113 |
| 110 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
| OLD | NEW |