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

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

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added DevTools part of patch. Resolved some comments 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int hostIdentifier(); 53 virtual int hostIdentifier();
54 virtual void saveAgentRuntimeState(const blink::WebString& state); 54 virtual void saveAgentRuntimeState(const blink::WebString& state);
55 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 55 virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
56 createClientMessageLoop(); 56 createClientMessageLoop();
57 virtual void clearBrowserCache(); 57 virtual void clearBrowserCache();
58 virtual void clearBrowserCookies(); 58 virtual void clearBrowserCookies();
59 virtual void setBlockedDomains(
60 const blink::WebVector<blink::WebString>& blocked_domains);
mmenke 2014/03/11 21:16:53 nit: +2 indent.
mmenke 2014/03/11 21:16:53 Should all of these be OVERRIDE, or is that a prob
eustas 2014/03/12 15:38:33 Done.
eustas 2014/03/12 15:38:33 Surely they should. I've added todo note.
59 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor); 61 virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor);
60 62
61 typedef void (*TraceEventCallback)( 63 typedef void (*TraceEventCallback)(
62 char phase, const unsigned char*, const char* name, unsigned long long id, 64 char phase, const unsigned char*, const char* name, unsigned long long id,
63 int numArgs, const char* const* argNames, const unsigned char* argTypes, 65 int numArgs, const char* const* argNames, const unsigned char* argTypes,
64 const unsigned long long* argValues, 66 const unsigned long long* argValues,
65 unsigned char flags, double timestamp); 67 unsigned char flags, double timestamp);
66 virtual void resetTraceEventCallback() OVERRIDE; 68 virtual void resetTraceEventCallback() OVERRIDE;
67 virtual void setTraceEventCallback(const blink::WebString& category_filter, 69 virtual void setTraceEventCallback(const blink::WebString& category_filter,
68 TraceEventCallback cb) OVERRIDE; 70 TraceEventCallback cb) OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 int32 gpu_route_id_; 105 int32 gpu_route_id_;
104 106
105 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_; 107 static base::subtle::AtomicWord /* TraceEventCallback */ event_callback_;
106 108
107 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 109 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
108 }; 110 };
109 111
110 } // namespace content 112 } // namespace content
111 113
112 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ 114 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698