| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const std::string& host, | 82 const std::string& host, |
| 83 const DevToolsHttpHandlerDelegate::TargetList& targets); | 83 const DevToolsHttpHandlerDelegate::TargetList& targets); |
| 84 | 84 |
| 85 DevToolsTarget* GetTarget(const std::string& id); | 85 DevToolsTarget* GetTarget(const std::string& id); |
| 86 | 86 |
| 87 void Init(); | 87 void Init(); |
| 88 void Teardown(); | 88 void Teardown(); |
| 89 | 89 |
| 90 void StartHandlerThread(); | 90 void StartHandlerThread(); |
| 91 void StopHandlerThread(); | 91 void StopHandlerThread(); |
| 92 void StopWithoutRelease(); |
| 92 | 93 |
| 93 void WriteActivePortToUserProfile(); | 94 void WriteActivePortToUserProfile(); |
| 94 | 95 |
| 95 void SendJson(int connection_id, | 96 void SendJson(int connection_id, |
| 96 net::HttpStatusCode status_code, | 97 net::HttpStatusCode status_code, |
| 97 base::Value* value, | 98 base::Value* value, |
| 98 const std::string& message); | 99 const std::string& message); |
| 99 void Send200(int connection_id, | 100 void Send200(int connection_id, |
| 100 const std::string& data, | 101 const std::string& data, |
| 101 const std::string& mime_type); | 102 const std::string& mime_type); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 125 typedef std::map<std::string, DevToolsTarget*> TargetMap; | 126 typedef std::map<std::string, DevToolsTarget*> TargetMap; |
| 126 TargetMap target_map_; | 127 TargetMap target_map_; |
| 127 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets; | 128 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets; |
| 128 BrowserTargets browser_targets_; | 129 BrowserTargets browser_targets_; |
| 129 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); | 130 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace content | 133 } // namespace content |
| 133 | 134 |
| 134 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 135 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| OLD | NEW |