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> |
| 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 kCapabilities[] = "casting"; |
| 16 |
| 17 CastExtension::CastExtension( |
| 18 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
| 19 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, |
| 20 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
| 21 const protocol::NetworkSettings& network_settings) |
| 22 : network_task_runner_(network_task_runner), |
| 23 video_capture_task_runner_(video_capture_task_runner), |
| 24 url_request_context_getter_(url_request_context_getter), |
| 25 network_settings_(network_settings) { |
| 26 } |
| 27 |
| 28 CastExtension::~CastExtension() { |
| 29 } |
| 30 |
| 31 std::string CastExtension::GetCapabilities() { |
| 32 return std::string(kCapabilities); |
| 33 } |
| 34 |
| 35 scoped_ptr<HostExtensionSession> CastExtension::CreateExtensionSession( |
| 36 ClientSession* client_session) { |
| 37 return scoped_ptr<HostExtensionSession>( |
| 38 CastExtensionSession::Create(network_task_runner_, |
| 39 video_capture_task_runner_, |
| 40 url_request_context_getter_, |
| 41 network_settings_, |
| 42 client_session)); |
| 43 } |
| 44 |
| 45 } // namespace remoting |
| 46 |
OLD | NEW |