Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / android_webview / native / aw_dev_tools_server.h
blob1a46ad82afe3806dc7182c3957752053c4d4fd6a
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"
13 namespace content {
14 class DevToolsHttpHandler;
17 namespace android_webview {
19 // This class controls WebView-specific Developer Tools remote debugging server.
20 class AwDevToolsServer {
21 public:
22 AwDevToolsServer();
23 ~AwDevToolsServer();
25 // Opens linux abstract socket to be ready for remote debugging.
26 void Start();
28 // Closes debugging socket, stops debugging.
29 void Stop();
31 bool IsStarted() const;
33 private:
34 content::DevToolsHttpHandler* protocol_handler_;
36 DISALLOW_COPY_AND_ASSIGN(AwDevToolsServer);
39 bool RegisterAwDevToolsServer(JNIEnv* env);
41 } // namespace android_webview
43 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEV_TOOLS_SERVER_H_