Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: remoting/host/cast_extension.cc

Issue 399253002: CastExtension Impl for Chromoting Host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final Fixes Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/cast_extension.h ('k') | remoting/host/cast_extension_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3a8f3b81eac3471ad2cc02856818ecacbe077795
--- /dev/null
+++ b/remoting/host/cast_extension.cc
@@ -0,0 +1,43 @@
+// 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 "net/url_request/url_request_context_getter.h"
+#include "remoting/host/cast_extension_session.h"
+#include "remoting/protocol/network_settings.h"
+
+namespace remoting {
+
+const char kCapability[] = "casting";
+
+CastExtension::CastExtension(
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
+ const protocol::NetworkSettings& network_settings)
+ : network_task_runner_(network_task_runner),
+ url_request_context_getter_(url_request_context_getter),
+ network_settings_(network_settings) {
+}
+
+CastExtension::~CastExtension() {
+}
+
+std::string CastExtension::capability() const {
+ return kCapability;
+}
+
+scoped_ptr<HostExtensionSession> CastExtension::CreateExtensionSession(
+ ClientSessionControl* client_session_control,
+ protocol::ClientStub* client_stub) {
+ return CastExtensionSession::Create(network_task_runner_,
+ url_request_context_getter_,
+ network_settings_,
+ client_session_control,
+ client_stub)
+ .PassAs<HostExtensionSession>();
+}
+
+} // namespace remoting
+
« no previous file with comments | « remoting/host/cast_extension.h ('k') | remoting/host/cast_extension_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698