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

Side by Side Diff: remoting/protocol/pepper_transport_factory.h

Issue 10160012: Pass TransportConfig to TransportFactory instead of Transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/pepper_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698