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

Side by Side Diff: content/renderer/devtools/devtools_agent.h

Issue 184283003: DevTools: support configurable category filter for trace events callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 unsetTraceEventCallback();
pfeldman 2014/02/28 09:23:01 reset?
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698