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

Side by Side Diff: content/browser/devtools/devtools_http_handler.h

Issue 2344753002: DevTools: return discovered targets asynchronously. (Closed)
Patch Set: for bots Created 4 years, 2 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
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_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 friend class ServerWrapper; 67 friend class ServerWrapper;
68 friend void ServerStartedOnUI( 68 friend void ServerStartedOnUI(
69 base::WeakPtr<DevToolsHttpHandler> handler, 69 base::WeakPtr<DevToolsHttpHandler> handler,
70 base::Thread* thread, 70 base::Thread* thread,
71 ServerWrapper* server_wrapper, 71 ServerWrapper* server_wrapper,
72 DevToolsSocketFactory* socket_factory, 72 DevToolsSocketFactory* socket_factory,
73 std::unique_ptr<net::IPEndPoint> ip_address); 73 std::unique_ptr<net::IPEndPoint> ip_address);
74 74
75 void OnJsonRequest(int connection_id, 75 void OnJsonRequest(int connection_id,
76 const net::HttpServerRequestInfo& info); 76 const net::HttpServerRequestInfo& info);
77 void RespondToJsonList(int connection_id,
78 const std::string& host,
79 DevToolsAgentHost::List agent_hosts);
77 void OnDiscoveryPageRequest(int connection_id); 80 void OnDiscoveryPageRequest(int connection_id);
78 void OnFrontendResourceRequest(int connection_id, const std::string& path); 81 void OnFrontendResourceRequest(int connection_id, const std::string& path);
79 void OnWebSocketRequest(int connection_id, 82 void OnWebSocketRequest(int connection_id,
80 const net::HttpServerRequestInfo& info); 83 const net::HttpServerRequestInfo& info);
81 void OnWebSocketMessage(int connection_id, const std::string& data); 84 void OnWebSocketMessage(int connection_id, const std::string& data);
82 void OnClose(int connection_id); 85 void OnClose(int connection_id);
83 86
84 void ServerStarted(base::Thread* thread, 87 void ServerStarted(base::Thread* thread,
85 ServerWrapper* server_wrapper, 88 ServerWrapper* server_wrapper,
86 DevToolsSocketFactory* socket_factory, 89 DevToolsSocketFactory* socket_factory,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::map<std::string, scoped_refptr<DevToolsAgentHost>>; 128 std::map<std::string, scoped_refptr<DevToolsAgentHost>>;
126 DescriptorMap agent_host_map_; 129 DescriptorMap agent_host_map_;
127 base::WeakPtrFactory<DevToolsHttpHandler> weak_factory_; 130 base::WeakPtrFactory<DevToolsHttpHandler> weak_factory_;
128 131
129 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandler); 132 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandler);
130 }; 133 };
131 134
132 } // namespace content 135 } // namespace content
133 136
134 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_ 137 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/devtools_http_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698