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

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

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
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_PROTOCOL_SECURE_CHANNEL_FACTORY_H_ 5 #ifndef REMOTING_PROTOCOL_SECURE_CHANNEL_FACTORY_H_
6 #define REMOTING_PROTOCOL_SECURE_CHANNEL_FACTORY_H_ 6 #define REMOTING_PROTOCOL_SECURE_CHANNEL_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 // to the caller. 24 // to the caller.
25 class SecureChannelFactory : public StreamChannelFactory { 25 class SecureChannelFactory : public StreamChannelFactory {
26 public: 26 public:
27 // Both parameters must outlive the object. 27 // Both parameters must outlive the object.
28 SecureChannelFactory(StreamChannelFactory* channel_factory, 28 SecureChannelFactory(StreamChannelFactory* channel_factory,
29 Authenticator* authenticator); 29 Authenticator* authenticator);
30 virtual ~SecureChannelFactory(); 30 virtual ~SecureChannelFactory();
31 31
32 // StreamChannelFactory interface. 32 // StreamChannelFactory interface.
33 virtual void CreateChannel(const std::string& name, 33 virtual void CreateChannel(const std::string& name,
34 const ChannelCreatedCallback& callback) OVERRIDE; 34 const ChannelCreatedCallback& callback) override;
35 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; 35 virtual void CancelChannelCreation(const std::string& name) override;
36 36
37 private: 37 private:
38 typedef std::map<std::string, ChannelAuthenticator*> AuthenticatorMap; 38 typedef std::map<std::string, ChannelAuthenticator*> AuthenticatorMap;
39 39
40 void OnBaseChannelCreated(const std::string& name, 40 void OnBaseChannelCreated(const std::string& name,
41 const ChannelCreatedCallback& callback, 41 const ChannelCreatedCallback& callback,
42 scoped_ptr<net::StreamSocket> socket); 42 scoped_ptr<net::StreamSocket> socket);
43 43
44 void OnSecureChannelCreated(const std::string& name, 44 void OnSecureChannelCreated(const std::string& name,
45 const ChannelCreatedCallback& callback, 45 const ChannelCreatedCallback& callback,
46 int error, 46 int error,
47 scoped_ptr<net::StreamSocket> socket); 47 scoped_ptr<net::StreamSocket> socket);
48 48
49 StreamChannelFactory* channel_factory_; 49 StreamChannelFactory* channel_factory_;
50 Authenticator* authenticator_; 50 Authenticator* authenticator_;
51 51
52 AuthenticatorMap channel_authenticators_; 52 AuthenticatorMap channel_authenticators_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(SecureChannelFactory); 54 DISALLOW_COPY_AND_ASSIGN(SecureChannelFactory);
55 }; 55 };
56 56
57 } // namespace protocol 57 } // namespace protocol
58 } // namespace remoting 58 } // namespace remoting
59 59
60 #endif // REMOTING_PROTOCOL_SECURE_CHANNEL_FACTORY_H_ 60 #endif // REMOTING_PROTOCOL_SECURE_CHANNEL_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pseudotcp_channel_factory.h ('k') | remoting/protocol/ssl_hmac_channel_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698