Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromecast / browser / devtools / remote_debugging_server.h
blobba32cc73ea276b59f81c0b871cfd0893d4d9dd04
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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
6 #define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "base/prefs/pref_member.h"
11 namespace devtools_http_handler {
12 class DevToolsHttpHandler;
15 namespace chromecast {
16 namespace shell {
18 class CastDevToolsManagerDelegate;
20 class RemoteDebuggingServer {
21 public:
22 explicit RemoteDebuggingServer(bool start_immediately);
23 ~RemoteDebuggingServer();
25 private:
26 // Called when pref_enabled_ is changed.
27 void OnEnabledChanged();
29 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
31 BooleanPrefMember pref_enabled_;
32 uint16 port_;
34 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
37 } // namespace shell
38 } // namespace chromecast
40 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_