blob: 1d6f8e88fb4ceec0be1c906b7449a98987d7f254 [file] [log] [blame]
[email protected]689266d2012-08-07 12:52:201// 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.
4
pfeldman10628762016-09-08 07:59:265#ifndef CHROME_BROWSER_ANDROID_DEVTOOLS_SERVER_H_
6#define CHROME_BROWSER_ANDROID_DEVTOOLS_SERVER_H_
[email protected]689266d2012-08-07 12:52:207
dchengaeceb05e2016-04-07 23:41:108#include <memory>
avie4d7b6f2015-12-26 00:59:189#include <string>
dchengaeceb05e2016-04-07 23:41:1010
avie4d7b6f2015-12-26 00:59:1811#include "base/macros.h"
[email protected]689266d2012-08-07 12:52:2012
[email protected]689266d2012-08-07 12:52:2013// This class controls Developer Tools remote debugging server.
14class DevToolsServer {
15 public:
[email protected]616d4942013-06-27 14:28:3516 explicit DevToolsServer(const std::string& socket_name_prefix);
[email protected]689266d2012-08-07 12:52:2017 ~DevToolsServer();
18
19 // Opens linux abstract socket to be ready for remote debugging.
[email protected]fe928be92014-08-08 09:17:4120 void Start(bool allow_debug_permission);
[email protected]689266d2012-08-07 12:52:2021
22 // Closes debugging socket, stops debugging.
23 void Stop();
24
25 bool IsStarted() const;
26
27 private:
[email protected]90e6c5412013-04-16 22:45:2528 std::string socket_name_;
pfeldman10628762016-09-08 07:59:2629 bool is_started_;
[email protected]689266d2012-08-07 12:52:2030
31 DISALLOW_COPY_AND_ASSIGN(DevToolsServer);
32};
33
pfeldman10628762016-09-08 07:59:2634#endif // CHROME_BROWSER_ANDROID_DEVTOOLS_SERVER_H_