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_
11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h"
15 class DevToolsHttpHandler
;
18 namespace android_webview
{
20 // This class controls WebView-specific Developer Tools remote debugging server.
21 class AwDevToolsServer
{
26 // Opens linux abstract socket to be ready for remote debugging.
29 // Closes debugging socket, stops debugging.
32 bool IsStarted() const;
35 scoped_ptr
<content::DevToolsHttpHandler
> protocol_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_