blob: b26641fb7db1baa2e5f7f8e9494c55cb21e49c6f (
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
47
48
49
50
51
52
53
54
|
// 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 REMOTING_HOST_CAST_EXTENSION_H_
#define REMOTING_HOST_CAST_EXTENSION_H_
#include <string>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/host/host_extension.h"
namespace base {
class SingleThreadTaskRunner;
} // namespace base
namespace net {
class URLRequestContextGetter;
} // namespace net
namespace remoting {
namespace protocol {
struct NetworkSettings;
} // namespace protocol
// CastExtension extends HostExtension to enable WebRTC support.
class CastExtension : public HostExtension {
public:
CastExtension(
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
const protocol::NetworkSettings& network_settings);
virtual ~CastExtension();
// HostExtension interface.
virtual std::string capability() const override;
virtual scoped_ptr<HostExtensionSession> CreateExtensionSession(
ClientSessionControl* client_session_control,
protocol::ClientStub* client_stub) override;
private:
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
const protocol::NetworkSettings& network_settings_;
DISALLOW_COPY_AND_ASSIGN(CastExtension);
};
} // namespace remoting
#endif // REMOTING_HOST_CAST_EXTENSION_H_
|