OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #include "remoting/host/cast_extension.h" | |
6 | |
7 #include <string> | |
Wez
2014/08/12 22:14:59
nit: Strictly you should keep the #include <string
aiguha
2014/08/13 18:33:27
It's in the .h file :)
| |
8 | |
9 #include "base/logging.h" | |
10 #include "remoting/host/cast_extension_session.h" | |
11 #include "remoting/protocol/network_settings.h" | |
12 | |
13 namespace remoting { | |
14 | |
15 const char kCapability[] = "casting"; | |
16 | |
17 CastExtension::CastExtension( | |
18 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | |
19 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, | |
20 const protocol::NetworkSettings& network_settings) | |
21 : network_task_runner_(network_task_runner), | |
22 url_request_context_getter_(url_request_context_getter), | |
23 network_settings_(network_settings) { | |
24 } | |
25 | |
26 CastExtension::~CastExtension() { | |
27 } | |
28 | |
29 std::string CastExtension::capability() const { | |
30 return std::string(kCapability); | |
Wez
2014/08/07 01:25:29
Can't you just:
return kCapability
?
aiguha
2014/08/12 01:42:35
Done.
| |
31 } | |
32 | |
33 scoped_ptr<HostExtensionSession> CastExtension::CreateExtensionSession( | |
34 ClientSessionControl* client_session_control, | |
35 protocol::ClientStub* client_stub) { | |
36 return scoped_ptr<HostExtensionSession>( | |
37 CastExtensionSession::Create(network_task_runner_, | |
38 url_request_context_getter_, | |
39 network_settings_, | |
40 client_session_control, | |
41 client_stub)); | |
42 } | |
43 | |
44 } // namespace remoting | |
45 | |
OLD | NEW |