blob: 3248bb77828658efd5eefb81513028a800f74f08 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
#define CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
#include "base/prefs/pref_member.h"
namespace content {
class DevToolsHttpHandler;
} // namespace content
namespace chromecast {
namespace shell {
class RemoteDebuggingServer {
public:
RemoteDebuggingServer();
~RemoteDebuggingServer();
private:
// Called on port number changed.
void OnPortChanged();
// Returns whether or not the remote debugging server should be available
// on device startup.
bool ShouldStartImmediately();
content::DevToolsHttpHandler* devtools_http_handler_;
IntegerPrefMember pref_port_;
int port_;
DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
};
} // namespace shell
} // namespace chromecast
#endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_