| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 DevToolsHttpHandlerDelegate* delegate, | 49 DevToolsHttpHandlerDelegate* delegate, |
| 50 const base::FilePath& active_port_output_directory); | 50 const base::FilePath& active_port_output_directory); |
| 51 virtual ~DevToolsHttpHandlerImpl(); | 51 virtual ~DevToolsHttpHandlerImpl(); |
| 52 void Start(); | 52 void Start(); |
| 53 | 53 |
| 54 // DevToolsHttpHandler implementation. | 54 // DevToolsHttpHandler implementation. |
| 55 virtual void Stop() OVERRIDE; | 55 virtual void Stop() OVERRIDE; |
| 56 virtual GURL GetFrontendURL() OVERRIDE; | 56 virtual GURL GetFrontendURL() OVERRIDE; |
| 57 | 57 |
| 58 // net::HttpServer::Delegate implementation. | 58 // net::HttpServer::Delegate implementation. |
| 59 virtual void OnConnect(int connection_id) OVERRIDE {} |
| 59 virtual void OnHttpRequest(int connection_id, | 60 virtual void OnHttpRequest(int connection_id, |
| 60 const net::HttpServerRequestInfo& info) OVERRIDE; | 61 const net::HttpServerRequestInfo& info) OVERRIDE; |
| 61 virtual void OnWebSocketRequest( | 62 virtual void OnWebSocketRequest( |
| 62 int connection_id, | 63 int connection_id, |
| 63 const net::HttpServerRequestInfo& info) OVERRIDE; | 64 const net::HttpServerRequestInfo& info) OVERRIDE; |
| 64 virtual void OnWebSocketMessage(int connection_id, | 65 virtual void OnWebSocketMessage(int connection_id, |
| 65 const std::string& data) OVERRIDE; | 66 const std::string& data) OVERRIDE; |
| 66 virtual void OnClose(int connection_id) OVERRIDE; | 67 virtual void OnClose(int connection_id) OVERRIDE; |
| 67 | 68 |
| 68 void OnJsonRequestUI(int connection_id, | 69 void OnJsonRequestUI(int connection_id, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 typedef std::map<std::string, DevToolsTarget*> TargetMap; | 128 typedef std::map<std::string, DevToolsTarget*> TargetMap; |
| 128 TargetMap target_map_; | 129 TargetMap target_map_; |
| 129 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets; | 130 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets; |
| 130 BrowserTargets browser_targets_; | 131 BrowserTargets browser_targets_; |
| 131 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); | 132 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace content | 135 } // namespace content |
| 135 | 136 |
| 136 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ | 137 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ |
| OLD | NEW |