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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/keyed_service/core/keyed_service.h" 9 #include "components/keyed_service/core/keyed_service.h"
10 #include "components/policy/core/common/cloud/cloud_policy_service.h" 10 #include "components/policy/core/common/cloud/cloud_policy_service.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 // The factory of this PKS depends on the factories of these two arguments, 30 // The factory of this PKS depends on the factories of these two arguments,
31 // so this object will be Shutdown() first and these pointers can be used 31 // so this object will be Shutdown() first and these pointers can be used
32 // until that point. 32 // until that point.
33 UserCloudPolicyTokenForwarder(UserCloudPolicyManagerChromeOS* manager, 33 UserCloudPolicyTokenForwarder(UserCloudPolicyManagerChromeOS* manager,
34 ProfileOAuth2TokenService* token_service, 34 ProfileOAuth2TokenService* token_service,
35 SigninManagerBase* signin_manager); 35 SigninManagerBase* signin_manager);
36 virtual ~UserCloudPolicyTokenForwarder(); 36 virtual ~UserCloudPolicyTokenForwarder();
37 37
38 // KeyedService: 38 // KeyedService:
39 virtual void Shutdown() OVERRIDE; 39 virtual void Shutdown() override;
40 40
41 // OAuth2TokenService::Observer: 41 // OAuth2TokenService::Observer:
42 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; 42 virtual void OnRefreshTokenAvailable(const std::string& account_id) override;
43 43
44 // OAuth2TokenService::Consumer: 44 // OAuth2TokenService::Consumer:
45 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request, 45 virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
46 const std::string& access_token, 46 const std::string& access_token,
47 const base::Time& expiration_time) OVERRIDE; 47 const base::Time& expiration_time) override;
48 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, 48 virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request,
49 const GoogleServiceAuthError& error) OVERRIDE; 49 const GoogleServiceAuthError& error) override;
50 50
51 // CloudPolicyService::Observer: 51 // CloudPolicyService::Observer:
52 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; 52 virtual void OnInitializationCompleted(CloudPolicyService* service) override;
53 53
54 private: 54 private:
55 void Initialize(); 55 void Initialize();
56 56
57 void RequestAccessToken(); 57 void RequestAccessToken();
58 58
59 UserCloudPolicyManagerChromeOS* manager_; 59 UserCloudPolicyManagerChromeOS* manager_;
60 ProfileOAuth2TokenService* token_service_; 60 ProfileOAuth2TokenService* token_service_;
61 SigninManagerBase* signin_manager_; 61 SigninManagerBase* signin_manager_;
62 scoped_ptr<OAuth2TokenService::Request> request_; 62 scoped_ptr<OAuth2TokenService::Request> request_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyTokenForwarder); 64 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyTokenForwarder);
65 }; 65 };
66 66
67 } // namespace policy 67 } // namespace policy
68 68
69 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_TOKEN_FORWARDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698