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

Side by Side Diff: content/browser/debugger/devtools_http_handler_impl.h

Issue 11548032: Telemetry / Devtools TraceHandler: exposes tracing via dev tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Error handling and comments Created 8 years 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_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_ 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 class Value; 25 class Value;
26 } 26 }
27 27
28 namespace net { 28 namespace net {
29 class StreamListenSocketFactory; 29 class StreamListenSocketFactory;
30 class URLRequestContextGetter; 30 class URLRequestContextGetter;
31 } 31 }
32 32
33 namespace content { 33 namespace content {
34 34
35 class DevToolsBrowserTarget;
35 class DevToolsClientHost; 36 class DevToolsClientHost;
36 class RenderViewHost; 37 class RenderViewHost;
37 38
38 class DevToolsHttpHandlerImpl 39 class DevToolsHttpHandlerImpl
39 : public DevToolsHttpHandler, 40 : public DevToolsHttpHandler,
40 public NotificationObserver, 41 public NotificationObserver,
41 public base::RefCountedThreadSafe<DevToolsHttpHandlerImpl>, 42 public base::RefCountedThreadSafe<DevToolsHttpHandlerImpl>,
42 public net::HttpServer::Delegate { 43 public net::HttpServer::Delegate {
43 private: 44 private:
44 struct PageInfo; 45 struct PageInfo;
(...skipping 27 matching lines...) Expand all
72 virtual void OnWebSocketRequest( 73 virtual void OnWebSocketRequest(
73 int connection_id, 74 int connection_id,
74 const net::HttpServerRequestInfo& info) OVERRIDE; 75 const net::HttpServerRequestInfo& info) OVERRIDE;
75 virtual void OnWebSocketMessage(int connection_id, 76 virtual void OnWebSocketMessage(int connection_id,
76 const std::string& data) OVERRIDE; 77 const std::string& data) OVERRIDE;
77 virtual void OnClose(int connection_id) OVERRIDE; 78 virtual void OnClose(int connection_id) OVERRIDE;
78 79
79 void OnJsonRequestUI(int connection_id, 80 void OnJsonRequestUI(int connection_id,
80 const net::HttpServerRequestInfo& info); 81 const net::HttpServerRequestInfo& info);
81 void OnThumbnailRequestUI(int connection_id, 82 void OnThumbnailRequestUI(int connection_id,
82 const net::HttpServerRequestInfo& info); 83 const net::HttpServerRequestInfo& info);
83 void OnDiscoveryPageRequestUI(int connection_id); 84 void OnDiscoveryPageRequestUI(int connection_id);
84 85
85 void OnWebSocketRequestUI(int connection_id, 86 void OnWebSocketRequestUI(int connection_id,
86 const net::HttpServerRequestInfo& info); 87 const net::HttpServerRequestInfo& info);
87 void OnWebSocketMessageUI(int connection_id, const std::string& data); 88 void OnWebSocketMessageUI(int connection_id, const std::string& data);
88 void OnCloseUI(int connection_id); 89 void OnCloseUI(int connection_id);
89 90
90 void ResetHandlerThread(); 91 void ResetHandlerThread();
91 void ResetHandlerThreadAndRelease(); 92 void ResetHandlerThreadAndRelease();
92 93
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 std::string overridden_frontend_url_; 128 std::string overridden_frontend_url_;
128 scoped_ptr<const net::StreamListenSocketFactory> socket_factory_; 129 scoped_ptr<const net::StreamListenSocketFactory> socket_factory_;
129 scoped_refptr<net::HttpServer> server_; 130 scoped_refptr<net::HttpServer> server_;
130 typedef std::map<int, DevToolsClientHost*> ConnectionToClientHostMap; 131 typedef std::map<int, DevToolsClientHost*> ConnectionToClientHostMap;
131 ConnectionToClientHostMap connection_to_client_host_ui_; 132 ConnectionToClientHostMap connection_to_client_host_ui_;
132 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; 133 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_;
133 RenderViewHostBinding* binding_; 134 RenderViewHostBinding* binding_;
134 scoped_ptr<RenderViewHostBinding> default_binding_; 135 scoped_ptr<RenderViewHostBinding> default_binding_;
135 NotificationRegistrar registrar_; 136 NotificationRegistrar registrar_;
137 scoped_ptr<DevToolsBrowserTarget> browser_target_;
136 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); 138 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl);
137 }; 139 };
138 140
139 } // namespace content 141 } // namespace content
140 142
141 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_ 143 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698