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