Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / android / dev_tools_server.h
blob1ada47d320f4003dc34aadc1a73b8f9145fd2dbc
1 // Copyright (c) 2012 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 CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_
6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_
8 #include <string>
9 #include <jni.h>
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
13 namespace devtools_http_handler {
14 class DevToolsHttpHandler;
17 // This class controls Developer Tools remote debugging server.
18 class DevToolsServer {
19 public:
20 explicit DevToolsServer(const std::string& socket_name_prefix);
21 ~DevToolsServer();
23 // Opens linux abstract socket to be ready for remote debugging.
24 void Start(bool allow_debug_permission);
26 // Closes debugging socket, stops debugging.
27 void Stop();
29 bool IsStarted() const;
31 private:
32 std::string socket_name_;
33 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
35 DISALLOW_COPY_AND_ASSIGN(DevToolsServer);
38 bool RegisterDevToolsServer(JNIEnv* env);
40 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_