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

Side by Side Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.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) 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 CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual ~EnrollmentHandlerChromeOS(); 76 virtual ~EnrollmentHandlerChromeOS();
77 77
78 // Starts the enrollment process and reports the result to 78 // Starts the enrollment process and reports the result to
79 // |completion_callback_|. 79 // |completion_callback_|.
80 void StartEnrollment(); 80 void StartEnrollment();
81 81
82 // Releases the client. 82 // Releases the client.
83 scoped_ptr<CloudPolicyClient> ReleaseClient(); 83 scoped_ptr<CloudPolicyClient> ReleaseClient();
84 84
85 // CloudPolicyClient::Observer: 85 // CloudPolicyClient::Observer:
86 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; 86 virtual void OnPolicyFetched(CloudPolicyClient* client) override;
87 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; 87 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) override;
88 virtual void OnRobotAuthCodesFetched(CloudPolicyClient* client) OVERRIDE; 88 virtual void OnRobotAuthCodesFetched(CloudPolicyClient* client) override;
89 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; 89 virtual void OnClientError(CloudPolicyClient* client) override;
90 90
91 // CloudPolicyStore::Observer: 91 // CloudPolicyStore::Observer:
92 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; 92 virtual void OnStoreLoaded(CloudPolicyStore* store) override;
93 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; 93 virtual void OnStoreError(CloudPolicyStore* store) override;
94 94
95 // GaiaOAuthClient::Delegate: 95 // GaiaOAuthClient::Delegate:
96 virtual void OnGetTokensResponse(const std::string& refresh_token, 96 virtual void OnGetTokensResponse(const std::string& refresh_token,
97 const std::string& access_token, 97 const std::string& access_token,
98 int expires_in_seconds) OVERRIDE; 98 int expires_in_seconds) override;
99 virtual void OnRefreshTokenResponse(const std::string& access_token, 99 virtual void OnRefreshTokenResponse(const std::string& access_token,
100 int expires_in_seconds) OVERRIDE; 100 int expires_in_seconds) override;
101 virtual void OnOAuthError() OVERRIDE; 101 virtual void OnOAuthError() override;
102 virtual void OnNetworkError(int response_code) OVERRIDE; 102 virtual void OnNetworkError(int response_code) override;
103 103
104 private: 104 private:
105 // Indicates what step of the process is currently pending. These steps need 105 // Indicates what step of the process is currently pending. These steps need
106 // to be listed in the order they are traversed in. 106 // to be listed in the order they are traversed in.
107 enum EnrollmentStep { 107 enum EnrollmentStep {
108 STEP_PENDING, // Not started yet. 108 STEP_PENDING, // Not started yet.
109 STEP_STATE_KEYS, // Waiting for state keys to become available. 109 STEP_STATE_KEYS, // Waiting for state keys to become available.
110 STEP_LOADING_STORE, // Waiting for |store_| to initialize. 110 STEP_LOADING_STORE, // Waiting for |store_| to initialize.
111 STEP_REGISTRATION, // Currently registering the client. 111 STEP_REGISTRATION, // Currently registering the client.
112 STEP_POLICY_FETCH, // Fetching policy. 112 STEP_POLICY_FETCH, // Fetching policy.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 int lockbox_init_duration_; 191 int lockbox_init_duration_;
192 192
193 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_; 193 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS); 195 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS);
196 }; 196 };
197 197
198 } // namespace policy 198 } // namespace policy
199 199
200 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 200 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698