OLD | NEW |
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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void OnDiscoveryPageRequestUI(int connection_id); | 73 void OnDiscoveryPageRequestUI(int connection_id); |
74 | 74 |
75 void OnWebSocketRequestUI(int connection_id, | 75 void OnWebSocketRequestUI(int connection_id, |
76 const net::HttpServerRequestInfo& info); | 76 const net::HttpServerRequestInfo& info); |
77 void OnWebSocketMessageUI(int connection_id, const std::string& data); | 77 void OnWebSocketMessageUI(int connection_id, const std::string& data); |
78 void OnCloseUI(int connection_id); | 78 void OnCloseUI(int connection_id); |
79 | 79 |
80 void ResetHandlerThread(); | 80 void ResetHandlerThread(); |
81 void ResetHandlerThreadAndRelease(); | 81 void ResetHandlerThreadAndRelease(); |
82 | 82 |
83 void CollectWorkerInfo(base::ListValue* target_list, std::string host); | 83 typedef std::vector<WorkerService::WorkerInfo> WorkerInfoList; |
84 void SendTargetList(int connection_id, base::ListValue* target_list); | 84 |
| 85 WorkerInfoList CollectWorkerInfo(); |
| 86 void SendTargetList(int connection_id, |
| 87 const std::string& host, |
| 88 base::ListValue* target_list, |
| 89 const WorkerInfoList& worker_info_list); |
85 | 90 |
86 void Init(); | 91 void Init(); |
87 void Teardown(); | 92 void Teardown(); |
88 | 93 |
89 void StartHandlerThread(); | 94 void StartHandlerThread(); |
90 void StopHandlerThread(); | 95 void StopHandlerThread(); |
91 | 96 |
92 void SendJson(int connection_id, | 97 void SendJson(int connection_id, |
93 net::HttpStatusCode status_code, | 98 net::HttpStatusCode status_code, |
94 base::Value* value, | 99 base::Value* value, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; | 133 scoped_ptr<DevToolsHttpHandlerDelegate> delegate_; |
129 DevToolsAgentHostBinding* binding_; | 134 DevToolsAgentHostBinding* binding_; |
130 scoped_ptr<DevToolsAgentHostBinding> default_binding_; | 135 scoped_ptr<DevToolsAgentHostBinding> default_binding_; |
131 scoped_refptr<DevToolsBrowserTarget> browser_target_; | 136 scoped_refptr<DevToolsBrowserTarget> browser_target_; |
132 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); | 137 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
133 }; | 138 }; |
134 | 139 |
135 } // namespace content | 140 } // namespace content |
136 | 141 |
137 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 142 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
OLD | NEW |