| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ | 6 #define CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | |
| 13 #include "content/browser/debugger/devtools_http_protocol_handler.h" | |
| 14 | 12 |
| 15 class DevToolsHttpProtocolHandler; | |
| 16 class Profile; | 13 class Profile; |
| 17 | 14 |
| 15 namespace content { |
| 16 class DevToolsHttpHandler; |
| 17 } |
| 18 |
| 18 class RemoteDebuggingServer { | 19 class RemoteDebuggingServer { |
| 19 public: | 20 public: |
| 20 RemoteDebuggingServer(Profile* profile, | 21 RemoteDebuggingServer(Profile* profile, |
| 21 const std::string& ip, | 22 const std::string& ip, |
| 22 int port, | 23 int port, |
| 23 const std::string& frontend_url); | 24 const std::string& frontend_url); |
| 24 | 25 |
| 25 virtual ~RemoteDebuggingServer(); | 26 virtual ~RemoteDebuggingServer(); |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; | 29 content::DevToolsHttpHandler* devtools_http_handler_; |
| 29 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); | 30 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 #endif // CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ | 33 #endif // CHROME_BROWSER_DEBUGGER_REMOTE_DEBUGGING_SERVER_H_ |
| OLD | NEW |