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

Side by Side Diff: remoting/protocol/pairing_client_authenticator.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PAIRING_CLIENT_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_PAIRING_CLIENT_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_PAIRING_CLIENT_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_PAIRING_CLIENT_AUTHENTICATOR_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "remoting/protocol/pairing_authenticator_base.h" 9 #include "remoting/protocol/pairing_authenticator_base.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 namespace protocol { 12 namespace protocol {
13 13
14 class PairingClientAuthenticator : public PairingAuthenticatorBase { 14 class PairingClientAuthenticator : public PairingAuthenticatorBase {
15 public: 15 public:
16 PairingClientAuthenticator( 16 PairingClientAuthenticator(
17 const std::string& client_id, 17 const std::string& client_id,
18 const std::string& paired_secret, 18 const std::string& paired_secret,
19 const FetchSecretCallback& fetch_pin_callback, 19 const FetchSecretCallback& fetch_pin_callback,
20 const std::string& authentication_tag); 20 const std::string& authentication_tag);
21 virtual ~PairingClientAuthenticator(); 21 virtual ~PairingClientAuthenticator();
22 22
23 private: 23 private:
24 // PairingAuthenticatorBase interface. 24 // PairingAuthenticatorBase interface.
25 virtual void CreateV2AuthenticatorWithPIN( 25 virtual void CreateV2AuthenticatorWithPIN(
26 State initial_state, 26 State initial_state,
27 const SetAuthenticatorCallback& callback) OVERRIDE; 27 const SetAuthenticatorCallback& callback) override;
28 virtual void AddPairingElements(buzz::XmlElement* message) OVERRIDE; 28 virtual void AddPairingElements(buzz::XmlElement* message) override;
29 29
30 void OnPinFetched(State initial_state, 30 void OnPinFetched(State initial_state,
31 const SetAuthenticatorCallback& callback, 31 const SetAuthenticatorCallback& callback,
32 const std::string& pin); 32 const std::string& pin);
33 33
34 // Protocol state. 34 // Protocol state.
35 bool sent_client_id_; 35 bool sent_client_id_;
36 std::string client_id_; 36 std::string client_id_;
37 const std::string& paired_secret_; 37 const std::string& paired_secret_;
38 FetchSecretCallback fetch_pin_callback_; 38 FetchSecretCallback fetch_pin_callback_;
39 std::string authentication_tag_; 39 std::string authentication_tag_;
40 40
41 base::WeakPtrFactory<PairingClientAuthenticator> weak_factory_; 41 base::WeakPtrFactory<PairingClientAuthenticator> weak_factory_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(PairingClientAuthenticator); 43 DISALLOW_COPY_AND_ASSIGN(PairingClientAuthenticator);
44 }; 44 };
45 45
46 } // namespace protocol 46 } // namespace protocol
47 } // namespace remoting 47 } // namespace remoting
48 48
49 #endif // REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_H_ 49 #endif // REMOTING_PROTOCOL_PAIRING_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/pairing_authenticator_base.h ('k') | remoting/protocol/pairing_host_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698