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

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

Issue 243103008: Add DevToolsAgent::{enable,disable}Tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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;
70 virtual void disableTracing() OVERRIDE;
69 virtual void startGPUEventsRecording() OVERRIDE; 71 virtual void startGPUEventsRecording() OVERRIDE;
70 virtual void stopGPUEventsRecording() OVERRIDE; 72 virtual void stopGPUEventsRecording() OVERRIDE;
71 73
72 virtual void enableDeviceEmulation( 74 virtual void enableDeviceEmulation(
73 const blink::WebRect& device_rect, 75 const blink::WebRect& device_rect,
74 const blink::WebRect& view_rect, float device_scale_factor, 76 const blink::WebRect& view_rect, float device_scale_factor,
75 bool fit_to_view); 77 bool fit_to_view);
76 virtual void enableDeviceEmulation( 78 virtual void enableDeviceEmulation(
77 const blink::WebDeviceEmulationParams& params); 79 const blink::WebDeviceEmulationParams& params);
78 virtual void disableDeviceEmulation(); 80 virtual void disableDeviceEmulation();
(...skipping 27 matching lines...) Expand all
106 int32 gpu_route_id_; 108 int32 gpu_route_id_;
107 109
108 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; 110 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_;
109 111
110 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 112 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
111 }; 113 };
112 114
113 } // namespace content 115 } // namespace content
114 116
115 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 117 #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