| Index: remoting/host/cast_extension.cc
|
| diff --git a/remoting/host/cast_extension.cc b/remoting/host/cast_extension.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d41c5d4389683c411e8a4878a3df02718f6e1095
|
| --- /dev/null
|
| +++ b/remoting/host/cast_extension.cc
|
| @@ -0,0 +1,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.
|
| +
|
| +#include "remoting/host/cast_extension.h"
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/logging.h"
|
| +#include "remoting/host/cast_extension_session.h"
|
| +#include "remoting/protocol/network_settings.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +const char kCapabilities[] = "casting";
|
| +
|
| +CastExtension::CastExtension(
|
| + scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
|
| + scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner,
|
| + scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
|
| + const protocol::NetworkSettings& network_settings)
|
| + : network_task_runner_(network_task_runner),
|
| + video_capture_task_runner_(video_capture_task_runner),
|
| + url_request_context_getter_(url_request_context_getter),
|
| + network_settings_(network_settings) {
|
| +}
|
| +
|
| +CastExtension::~CastExtension() {
|
| +}
|
| +
|
| +std::string CastExtension::GetCapabilities() {
|
| + return std::string(kCapabilities);
|
| +}
|
| +
|
| +scoped_ptr<HostExtensionSession> CastExtension::CreateExtensionSession(
|
| + ClientSession* client_session) {
|
| + return scoped_ptr<HostExtensionSession>(
|
| + CastExtensionSession::Create(network_task_runner_,
|
| + video_capture_task_runner_,
|
| + url_request_context_getter_,
|
| + network_settings_,
|
| + client_session));
|
| +}
|
| +
|
| +} // namespace remoting
|
| +
|
|
|