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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h

Issue 975353002: Added OOBE Asset / Naming prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments Created 5 years, 8 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_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_IM PL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_IM PL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_IM PL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_IM PL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 const std::string& enrolling_user_domain); 36 const std::string& enrolling_user_domain);
37 ~EnterpriseEnrollmentHelperImpl() override; 37 ~EnterpriseEnrollmentHelperImpl() override;
38 38
39 // Overridden from EnterpriseEnrollmentHelper: 39 // Overridden from EnterpriseEnrollmentHelper:
40 void EnrollUsingProfile(Profile* profile, 40 void EnrollUsingProfile(Profile* profile,
41 bool fetch_additional_token) override; 41 bool fetch_additional_token) override;
42 void EnrollUsingAuthCode(const std::string& auth_code) override; 42 void EnrollUsingAuthCode(const std::string& auth_code) override;
43 void EnrollUsingToken(const std::string& token) override; 43 void EnrollUsingToken(const std::string& token) override;
44 void ClearAuth(const base::Closure& callback) override; 44 void ClearAuth(const base::Closure& callback) override;
45 45
46 const std::string& GetOAuthToken() override;
47
46 private: 48 private:
47 void DoEnrollUsingToken(const std::string& token); 49 void DoEnrollUsingToken(const std::string& token);
48 50
49 // Handles completion of the OAuth2 token fetch attempt. 51 // Handles completion of the OAuth2 token fetch attempt.
50 void OnTokenFetched(size_t fetcher_index, 52 void OnTokenFetched(size_t fetcher_index,
51 const std::string& token, 53 const std::string& token,
52 const GoogleServiceAuthError& error); 54 const GoogleServiceAuthError& error);
53 55
54 // Handles completion of the enrollment attempt. 56 // Handles completion of the enrollment attempt.
55 void OnEnrollmentFinished(policy::EnrollmentStatus status); 57 void OnEnrollmentFinished(policy::EnrollmentStatus status);
(...skipping 30 matching lines...) Expand all
86 ScopedVector<policy::PolicyOAuth2TokenFetcher> oauth_fetchers_; 88 ScopedVector<policy::PolicyOAuth2TokenFetcher> oauth_fetchers_;
87 89
88 base::WeakPtrFactory<EnterpriseEnrollmentHelperImpl> weak_ptr_factory_; 90 base::WeakPtrFactory<EnterpriseEnrollmentHelperImpl> weak_ptr_factory_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentHelperImpl); 92 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentHelperImpl);
91 }; 93 };
92 94
93 } // namespace chromeos 95 } // namespace chromeos
94 96
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _IMPL_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698