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

Unified Diff: remoting/host/cast_extension.h

Issue 399253002: CastExtension Impl for Chromoting Host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated New HostExtension Flow 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 | « no previous file | remoting/host/cast_extension.cc » ('j') | remoting/host/cast_extension.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/cast_extension.h
diff --git a/remoting/host/cast_extension.h b/remoting/host/cast_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..c46690fe1fc8205d97fedcd6c3079584e2805006
--- /dev/null
+++ b/remoting/host/cast_extension.h
@@ -0,0 +1,48 @@
+// 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/scoped_ptr.h"
+#include "net/url_request/url_request_context_getter.h"
Wez 2014/08/07 01:25:29 Forward define this rather than include?
aiguha 2014/08/12 01:42:36 Done.
+#include "remoting/host/host_extension.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
+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();
+
+ virtual std::string capability() const OVERRIDE;
Wez 2014/08/07 01:25:29 nit: Suggest comment "HostExtension interface." to
aiguha 2014/08/12 01:42:35 Done.
+ virtual scoped_ptr<HostExtensionSession> CreateExtensionSession(
+ ClientSessionControl* client_session_control,
+ protocol::ClientStub* client_stub) OVERRIDE;
+
+ private:
+ // Parameters passed to CastExtensionSession on creation.
Wez 2014/08/07 01:25:29 nit: This comment is not necessary, since there ar
aiguha 2014/08/12 01:42:35 Acknowledged.
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
+ const protocol::NetworkSettings& network_settings_;
+};
Wez 2014/08/07 01:25:29 DISALLOW_COPY_AND_ASSIGN(...)
aiguha 2014/08/12 01:42:35 Done.
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_CAST_EXTENSION_H_
+
« no previous file with comments | « no previous file | remoting/host/cast_extension.cc » ('j') | remoting/host/cast_extension.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698