OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 #include "content/common/content_export.h" | |
12 | |
13 namespace content { | |
14 | |
15 class DevToolsHttpHandlerDelegate; | |
16 | |
17 // This class is used for managing DevTools remote debugging server. | |
18 // Clients can connect to the specified ip:port and start debugging | |
19 // this browser. | |
20 class DevToolsHttpHandler { | |
21 public: | |
22 // Takes ownership over |delegate|. | |
23 CONTENT_EXPORT static DevToolsHttpHandler* Start( | |
24 const std::string& ip, | |
25 int port, | |
26 const std::string& frontend_url, | |
27 DevToolsHttpHandlerDelegate* delegate); | |
28 | |
29 // Called from the main thread in order to stop protocol handler. | |
30 // Will schedule tear down task on the IO thread. | |
jam
2011/12/01 19:04:27
nit: no need to explain what the function does int
yurys
2011/12/02 06:43:00
Done.
| |
31 virtual void Stop() = 0; | |
32 | |
33 protected: | |
34 virtual ~DevToolsHttpHandler() {} | |
35 }; | |
36 | |
37 } // namespace content | |
38 | |
39 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ | |
OLD | NEW |