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 #ifndef REMOTING_HOST_CAST_EXTENSION_H_ |
| 6 #define REMOTING_HOST_CAST_EXTENSION_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "net/url_request/url_request_context_getter.h" |
| 12 #include "remoting/host/host_extension.h" |
| 13 |
| 14 namespace base { |
| 15 class SingleThreadTaskRunner; |
| 16 } // namespace base |
| 17 |
| 18 namespace remoting { |
| 19 |
| 20 namespace protocol { |
| 21 struct NetworkSettings; |
| 22 } // namespace protocol |
| 23 |
| 24 // A class that extends HostExtension to enable WebRTC support. |
| 25 class CastExtension : public HostExtension { |
| 26 public: |
| 27 CastExtension( |
| 28 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
| 29 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, |
| 30 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
| 31 const protocol::NetworkSettings& network_settings); |
| 32 virtual ~CastExtension(); |
| 33 |
| 34 virtual std::string GetCapabilities() OVERRIDE; |
| 35 virtual scoped_ptr<HostExtensionSession> CreateExtensionSession( |
| 36 ClientSession* client_session) OVERRIDE; |
| 37 |
| 38 private: |
| 39 // Parameters passed to CastExtensionSession on creation. |
| 40 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
| 41 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; |
| 42 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
| 43 const protocol::NetworkSettings& network_settings_; |
| 44 }; |
| 45 |
| 46 } // namespace remoting |
| 47 |
| 48 #endif // REMOTING_HOST_CAST_EXTENSION_H_ |
| 49 |
OLD | NEW |