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 virtual void Stop() = 0; |
| 31 |
| 32 protected: |
| 33 virtual ~DevToolsHttpHandler() {} |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_H_ |
OLD | NEW |