ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chromecast / browser / devtools / remote_debugging_server.h
blobed662f8ff72fd05fe8693e84f31f42efef0accb9
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 content {
12 class DevToolsHttpHandler;
13 } // namespace content
15 namespace chromecast {
16 namespace shell {
18 class RemoteDebuggingServer {
19 public:
20 RemoteDebuggingServer();
21 ~RemoteDebuggingServer();
23 private:
24 // Called on port number changed.
25 void OnPortChanged();
27 // Returns whether or not the remote debugging server should be available
28 // on device startup.
29 bool ShouldStartImmediately();
31 scoped_ptr<content::DevToolsHttpHandler> devtools_http_handler_;
33 IntegerPrefMember pref_port_;
34 uint16 port_;
36 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
39 } // namespace shell
40 } // namespace chromecast
42 #endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_