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

Side by Side Diff: chromecast/browser/devtools/remote_debugging_server.h

Issue 2300703005: DevTools: merge devtools_http_handler into content - it is used in all the embedders anyways. (Closed)
Patch Set: for_landing! Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "components/prefs/pref_member.h" 13 #include "components/prefs/pref_member.h"
14 14
15 namespace devtools_http_handler {
16 class DevToolsHttpHandler;
17 }
18
19 namespace chromecast { 15 namespace chromecast {
20 namespace shell { 16 namespace shell {
21 17
22 class CastDevToolsManagerDelegate; 18 class CastDevToolsManagerDelegate;
23 19
24 class RemoteDebuggingServer { 20 class RemoteDebuggingServer {
25 public: 21 public:
26 explicit RemoteDebuggingServer(bool start_immediately); 22 explicit RemoteDebuggingServer(bool start_immediately);
27 ~RemoteDebuggingServer(); 23 ~RemoteDebuggingServer();
28 24
29 private: 25 private:
30 // Called when pref_enabled_ is changed. 26 // Called when pref_enabled_ is changed.
31 void OnEnabledChanged(); 27 void OnEnabledChanged();
32
33 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler>
34 devtools_http_handler_;
35
36 BooleanPrefMember pref_enabled_; 28 BooleanPrefMember pref_enabled_;
37 uint16_t port_; 29 uint16_t port_;
30 bool is_started_;
38 31
39 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); 32 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
40 }; 33 };
41 34
42 } // namespace shell 35 } // namespace shell
43 } // namespace chromecast 36 } // namespace chromecast
44 37
45 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 38 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
OLDNEW
« no previous file with comments | « chromecast/browser/devtools/cast_devtools_delegate.cc ('k') | chromecast/browser/devtools/remote_debugging_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698