Files.app: Use persistent cache for MetadataProviderCache.
[chromium-blink-merge.git] / android_webview / native / aw_dev_tools_server.h
blob33955dcf5ed8e1036db9ed0dfeeeebeed12c96e6
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 content {
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<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_