blob: 2d9e48e75c192797caab5c5005473b2fc45d0a94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// 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/memory/scoped_ptr.h"
#include "base/prefs/pref_member.h"
namespace devtools_http_handler {
class DevToolsHttpHandler;
}
namespace chromecast {
namespace shell {
class CastDevToolsManagerDelegate;
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();
// TODO(dgozman): remove once devtools_discovery component is extracted.
scoped_ptr<CastDevToolsManagerDelegate> manager_delegate_;
scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
IntegerPrefMember pref_port_;
uint16 port_;
DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
};
} // namespace shell
} // namespace chromecast
#endif // CHROMECAST_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
|