Chromium Code Reviews| 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" | |
|
Wez
2014/08/07 01:25:29
Forward define this rather than include?
aiguha
2014/08/12 01:42:36
Done.
| |
| 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 // CastExtension 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<net::URLRequestContextGetter> url_request_context_getter, | |
| 30 const protocol::NetworkSettings& network_settings); | |
| 31 virtual ~CastExtension(); | |
| 32 | |
| 33 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.
| |
| 34 virtual scoped_ptr<HostExtensionSession> CreateExtensionSession( | |
| 35 ClientSessionControl* client_session_control, | |
| 36 protocol::ClientStub* client_stub) OVERRIDE; | |
| 37 | |
| 38 private: | |
| 39 // 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.
| |
| 40 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | |
| 41 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | |
| 42 const protocol::NetworkSettings& network_settings_; | |
| 43 }; | |
|
Wez
2014/08/07 01:25:29
DISALLOW_COPY_AND_ASSIGN(...)
aiguha
2014/08/12 01:42:35
Done.
| |
| 44 | |
| 45 } // namespace remoting | |
| 46 | |
| 47 #endif // REMOTING_HOST_CAST_EXTENSION_H_ | |
| 48 | |
| OLD | NEW |