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

Side by Side Diff: chrome/browser/signin/easy_unlock_toggle_flow.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (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 CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 const std::string& phone_public_key, 27 const std::string& phone_public_key,
28 bool toggle_enable, 28 bool toggle_enable,
29 const ToggleFlowCallback& callback); 29 const ToggleFlowCallback& callback);
30 virtual ~EasyUnlockToggleFlow(); 30 virtual ~EasyUnlockToggleFlow();
31 31
32 void Start(); 32 void Start();
33 33
34 // OAuth2TokenService::Consumer 34 // OAuth2TokenService::Consumer
35 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request, 35 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
36 const std::string& access_token, 36 const std::string& access_token,
37 const base::Time& expiration_time) OVERRIDE; 37 const base::Time& expiration_time) override;
38 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, 38 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
39 const GoogleServiceAuthError& error) OVERRIDE; 39 const GoogleServiceAuthError& error) override;
40 40
41 // OAuth2MintTokenFlow::Delegate 41 // OAuth2MintTokenFlow::Delegate
42 virtual void OnMintTokenSuccess(const std::string& access_token, 42 virtual void OnMintTokenSuccess(const std::string& access_token,
43 int time_to_live) OVERRIDE; 43 int time_to_live) override;
44 virtual void OnMintTokenFailure( 44 virtual void OnMintTokenFailure(
45 const GoogleServiceAuthError& error) OVERRIDE; 45 const GoogleServiceAuthError& error) override;
46 virtual void OnIssueAdviceSuccess( 46 virtual void OnIssueAdviceSuccess(
47 const IssueAdviceInfo& issue_advice) OVERRIDE; 47 const IssueAdviceInfo& issue_advice) override;
48 48
49 private: 49 private:
50 // Derived OAuth2ApiCallFlow class to make toggle api call after access token 50 // Derived OAuth2ApiCallFlow class to make toggle api call after access token
51 // is available. 51 // is available.
52 class ToggleApiCall; 52 class ToggleApiCall;
53 53
54 // Callbacks from ToggleApiCall 54 // Callbacks from ToggleApiCall
55 void ReportToggleApiCallResult(bool success); 55 void ReportToggleApiCallResult(bool success);
56 56
57 Profile* profile_; 57 Profile* profile_;
58 const std::string phone_public_key_; 58 const std::string phone_public_key_;
59 const bool toggle_enable_; 59 const bool toggle_enable_;
60 ToggleFlowCallback callback_; 60 ToggleFlowCallback callback_;
61 61
62 scoped_ptr<OAuth2TokenService::Request> token_request_; 62 scoped_ptr<OAuth2TokenService::Request> token_request_;
63 scoped_ptr<OAuth2MintTokenFlow> mint_token_flow_; 63 scoped_ptr<OAuth2MintTokenFlow> mint_token_flow_;
64 scoped_ptr<ToggleApiCall> toggle_api_call_; 64 scoped_ptr<ToggleApiCall> toggle_api_call_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(EasyUnlockToggleFlow); 66 DISALLOW_COPY_AND_ASSIGN(EasyUnlockToggleFlow);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_ 69 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_TOGGLE_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_signin_chromeos.h ('k') | chrome/browser/signin/easy_unlock_toggle_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698