Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / devtools / remote_debugging_server.h
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 XWALK_RUNTIME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
6 #define XWALK_RUNTIME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 namespace content {
13 class DevToolsHttpHandler;
14 }
15
16 namespace xwalk {
17
18 class RuntimeContext;
19
20 class RemoteDebuggingServer {
21  public:
22   RemoteDebuggingServer(RuntimeContext* runtime_context,
23                         const std::string& ip,
24                         int port,
25                         const std::string& frontend_url);
26
27   virtual ~RemoteDebuggingServer();
28
29   content::DevToolsHttpHandler* devtools_http_handler() const {
30     return devtools_http_handler_;
31   }
32
33  private:
34   content::DevToolsHttpHandler* devtools_http_handler_;
35   DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
36 };
37
38 }  // namespace xwalk
39
40 #endif  // XWALK_RUNTIME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_