OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ |
6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ |
7 | 7 |
8 #include "remoting/protocol/transport.h" | 8 #include "remoting/protocol/transport.h" |
| 9 #include "remoting/protocol/transport_config.h" |
9 | 10 |
10 namespace pp { | 11 namespace pp { |
11 class Instance; | 12 class Instance; |
12 } // namespace pp | 13 } // namespace pp |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 namespace protocol { | 16 namespace protocol { |
16 | 17 |
17 class PepperTransportFactory : public TransportFactory { | 18 class PepperTransportFactory : public TransportFactory { |
18 public: | 19 public: |
19 PepperTransportFactory(pp::Instance* pp_instance); | 20 PepperTransportFactory(pp::Instance* pp_instance); |
20 virtual ~PepperTransportFactory(); | 21 virtual ~PepperTransportFactory(); |
21 | 22 |
| 23 // TransportFactory interface. |
| 24 virtual void SetTransportConfig(const TransportConfig& config) OVERRIDE; |
22 virtual scoped_ptr<StreamTransport> CreateStreamTransport() OVERRIDE; | 25 virtual scoped_ptr<StreamTransport> CreateStreamTransport() OVERRIDE; |
23 virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() OVERRIDE; | 26 virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() OVERRIDE; |
24 | 27 |
25 private: | 28 private: |
26 pp::Instance* pp_instance_; | 29 pp::Instance* pp_instance_; |
| 30 TransportConfig config_; |
27 | 31 |
28 DISALLOW_COPY_AND_ASSIGN(PepperTransportFactory); | 32 DISALLOW_COPY_AND_ASSIGN(PepperTransportFactory); |
29 }; | 33 }; |
30 | 34 |
31 } // namespace protocol | 35 } // namespace protocol |
32 } // namespace remoting | 36 } // namespace remoting |
33 | 37 |
34 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ | 38 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_ |
OLD | NEW |