Update V8 to version 4.7.19.
[chromium-blink-merge.git] / android_webview / native / aw_dev_tools_server.h
blobe3b5640b16dcb90235d1a8bd83f5122708242221
1 // Copyright 2013 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.
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_DEV_TOOLS_SERVER_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_DEV_TOOLS_SERVER_H_
8 #include <jni.h>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h"
14 namespace devtools_http_handler {
15 class DevToolsHttpHandler;
18 namespace android_webview {
20 // This class controls WebView-specific Developer Tools remote debugging server.
21 class AwDevToolsServer {
22 public:
23 AwDevToolsServer();
24 ~AwDevToolsServer();
26 // Opens linux abstract socket to be ready for remote debugging.
27 void Start();
29 // Closes debugging socket, stops debugging.
30 void Stop();
32 bool IsStarted() const;
34 private:
35 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
37 DISALLOW_COPY_AND_ASSIGN(AwDevToolsServer);
40 bool RegisterAwDevToolsServer(JNIEnv* env);
42 } // namespace android_webview
44 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEV_TOOLS_SERVER_H_