Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: chrome/browser/android/dev_tools_server.h

Issue 1114503002: [DevTools] Cleanup DevToolsTarget and DevToolsManagerDelegate after moving to devtools_discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devtools-discovery-chrome
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_
6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_ 6 #define CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <jni.h> 9 #include <jni.h>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace devtools_http_handler { 13 namespace devtools_http_handler {
14 class DevToolsHttpHandler; 14 class DevToolsHttpHandler;
15 } 15 }
16 16
17 class DevToolsManagerDelegateAndroid;
18
19 // This class controls Developer Tools remote debugging server. 17 // This class controls Developer Tools remote debugging server.
20 class DevToolsServer { 18 class DevToolsServer {
21 public: 19 public:
22 explicit DevToolsServer(const std::string& socket_name_prefix); 20 explicit DevToolsServer(const std::string& socket_name_prefix);
23 ~DevToolsServer(); 21 ~DevToolsServer();
24 22
25 // Opens linux abstract socket to be ready for remote debugging. 23 // Opens linux abstract socket to be ready for remote debugging.
26 void Start(bool allow_debug_permission); 24 void Start(bool allow_debug_permission);
27 25
28 // Closes debugging socket, stops debugging. 26 // Closes debugging socket, stops debugging.
29 void Stop(); 27 void Stop();
30 28
31 bool IsStarted() const; 29 bool IsStarted() const;
32 30
33 private: 31 private:
34 std::string socket_name_; 32 std::string socket_name_;
35 // TODO(dgozman): remove once devtools_discovery component is extracted.
36 scoped_ptr<DevToolsManagerDelegateAndroid> manager_delegate_;
37 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; 33 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
38 34
39 DISALLOW_COPY_AND_ASSIGN(DevToolsServer); 35 DISALLOW_COPY_AND_ASSIGN(DevToolsServer);
40 }; 36 };
41 37
42 bool RegisterDevToolsServer(JNIEnv* env); 38 bool RegisterDevToolsServer(JNIEnv* env);
43 39
44 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_ 40 #endif // CHROME_BROWSER_ANDROID_DEV_TOOLS_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/dev_tools_manager_delegate_android.cc ('k') | chrome/browser/android/dev_tools_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698