| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_CAST_EXTENSION_H_ | 5 #ifndef REMOTING_HOST_CAST_EXTENSION_H_ |
| 6 #define REMOTING_HOST_CAST_EXTENSION_H_ | 6 #define REMOTING_HOST_CAST_EXTENSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "remoting/host/host_extension.h" | 13 #include "remoting/host/host_extension.h" |
| 14 | 14 |
| 15 namespace base { | |
| 16 class SingleThreadTaskRunner; | |
| 17 } // namespace base | |
| 18 | |
| 19 namespace net { | |
| 20 class URLRequestContextGetter; | |
| 21 } // namespace net | |
| 22 | |
| 23 namespace remoting { | 15 namespace remoting { |
| 24 | 16 |
| 25 namespace protocol { | 17 namespace protocol { |
| 26 struct NetworkSettings; | 18 class TransportContext; |
| 27 } // namespace protocol | 19 } // namespace protocol |
| 28 | 20 |
| 29 // CastExtension extends HostExtension to enable WebRTC support. | 21 // CastExtension extends HostExtension to enable WebRTC support. |
| 30 class CastExtension : public HostExtension { | 22 class CastExtension : public HostExtension { |
| 31 public: | 23 public: |
| 32 CastExtension( | 24 CastExtension(scoped_refptr<protocol::TransportContext> transport_context); |
| 33 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | |
| 34 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, | |
| 35 const protocol::NetworkSettings& network_settings); | |
| 36 ~CastExtension() override; | 25 ~CastExtension() override; |
| 37 | 26 |
| 38 // HostExtension interface. | 27 // HostExtension interface. |
| 39 std::string capability() const override; | 28 std::string capability() const override; |
| 40 scoped_ptr<HostExtensionSession> CreateExtensionSession( | 29 scoped_ptr<HostExtensionSession> CreateExtensionSession( |
| 41 ClientSessionControl* client_session_control, | 30 ClientSessionControl* client_session_control, |
| 42 protocol::ClientStub* client_stub) override; | 31 protocol::ClientStub* client_stub) override; |
| 43 | 32 |
| 44 private: | 33 private: |
| 45 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 34 scoped_refptr<protocol::TransportContext> transport_context_; |
| 46 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | |
| 47 const protocol::NetworkSettings& network_settings_; | |
| 48 | 35 |
| 49 DISALLOW_COPY_AND_ASSIGN(CastExtension); | 36 DISALLOW_COPY_AND_ASSIGN(CastExtension); |
| 50 }; | 37 }; |
| 51 | 38 |
| 52 } // namespace remoting | 39 } // namespace remoting |
| 53 | 40 |
| 54 #endif // REMOTING_HOST_CAST_EXTENSION_H_ | 41 #endif // REMOTING_HOST_CAST_EXTENSION_H_ |
| 55 | 42 |
| OLD | NEW |