OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_SERVER_H_ | |
6 #define ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_SERVER_H_ | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include <memory> | |
11 #include <vector> | |
12 | |
13 #include "base/macros.h" | |
14 | |
15 namespace android_webview { | |
16 | |
17 // This class controls WebView-specific Developer Tools remote debugging server. | |
18 class AwDevToolsServer { | |
19 public: | |
20 AwDevToolsServer(); | |
21 ~AwDevToolsServer(); | |
22 | |
23 // Opens linux abstract socket to be ready for remote debugging. | |
24 void Start(); | |
25 | |
26 // Closes debugging socket, stops debugging. | |
27 void Stop(); | |
28 | |
29 bool IsStarted() const; | |
30 | |
31 private: | |
32 bool is_started_; | |
33 DISALLOW_COPY_AND_ASSIGN(AwDevToolsServer); | |
34 }; | |
35 | |
36 bool RegisterAwDevToolsServer(JNIEnv* env); | |
37 | |
38 } // namespace android_webview | |
39 | |
40 #endif // ANDROID_WEBVIEW_NATIVE_AW_DEVTOOLS_SERVER_H_ | |
OLD | NEW |