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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 3026048: Fetch OEM services customization manifest from URL async.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_WIZARD_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/chromeos/login/screen_observer.h" 13 #include "chrome/browser/chromeos/login/screen_observer.h"
14 #include "chrome/browser/chromeos/login/string_fetcher.h"
15 #include "chrome/browser/chromeos/login/view_screen.h" 14 #include "chrome/browser/chromeos/login/view_screen.h"
16 #include "chrome/browser/chromeos/login/wizard_screen.h" 15 #include "chrome/browser/chromeos/login/wizard_screen.h"
17 #include "testing/gtest/include/gtest/gtest_prod.h" 16 #include "testing/gtest/include/gtest/gtest_prod.h"
18 17
19 class PrefService; 18 class PrefService;
20 class WizardContentsView; 19 class WizardContentsView;
21 class WizardScreen; 20 class WizardScreen;
22 21
23 namespace chromeos { 22 namespace chromeos {
24 class AccountScreen; 23 class AccountScreen;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // of the document object. 111 // of the document object.
113 void SetCustomization( 112 void SetCustomization(
114 const chromeos::StartupCustomizationDocument* customization); 113 const chromeos::StartupCustomizationDocument* customization);
115 114
116 // Returns partner startup customization document owned by WizardController. 115 // Returns partner startup customization document owned by WizardController.
117 const chromeos::StartupCustomizationDocument* GetCustomization() const; 116 const chromeos::StartupCustomizationDocument* GetCustomization() const;
118 117
119 // Registers OOBE preferences. 118 // Registers OOBE preferences.
120 static void RegisterPrefs(PrefService* local_state); 119 static void RegisterPrefs(PrefService* local_state);
121 120
122 // Applies partner services customizations.
123 void ApplyPartnerServicesCustomizations();
124
125 static const char kNetworkScreenName[]; 121 static const char kNetworkScreenName[];
126 static const char kLoginScreenName[]; 122 static const char kLoginScreenName[];
127 static const char kAccountScreenName[]; 123 static const char kAccountScreenName[];
128 static const char kUpdateScreenName[]; 124 static const char kUpdateScreenName[];
129 static const char kUserImageScreenName[]; 125 static const char kUserImageScreenName[];
130 static const char kRegistrationScreenName[]; 126 static const char kRegistrationScreenName[];
131 static const char kOutOfBoxScreenName[]; 127 static const char kOutOfBoxScreenName[];
132 static const char kTestNoScreenName[]; 128 static const char kTestNoScreenName[];
133 static const char kEulaScreenName[]; 129 static const char kEulaScreenName[];
134 130
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 209
214 // NULL by default - controller itself is observer. Mock could be assigned. 210 // NULL by default - controller itself is observer. Mock could be assigned.
215 ScreenObserver* observer_; 211 ScreenObserver* observer_;
216 212
217 // Default WizardController. 213 // Default WizardController.
218 static WizardController* default_controller_; 214 static WizardController* default_controller_;
219 215
220 // Partner startup customizations. 216 // Partner startup customizations.
221 scoped_ptr<const chromeos::StartupCustomizationDocument> customization_; 217 scoped_ptr<const chromeos::StartupCustomizationDocument> customization_;
222 218
223 // Partner services manifest fetcher.
224 scoped_ptr<StringFetcher> services_manifest_fetcher_;
225
226 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorNetwork); 219 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorNetwork);
227 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorUpdate); 220 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorUpdate);
228 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, 221 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest,
229 ControlFlowLanguageOnLogin); 222 ControlFlowLanguageOnLogin);
230 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, 223 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest,
231 ControlFlowLanguageOnNetwork); 224 ControlFlowLanguageOnNetwork);
232 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain); 225 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain);
233 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage); 226 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage);
234 friend class WizardControllerFlowTest; 227 friend class WizardControllerFlowTest;
235 228
236 DISALLOW_COPY_AND_ASSIGN(WizardController); 229 DISALLOW_COPY_AND_ASSIGN(WizardController);
237 }; 230 };
238 231
239 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 232 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/string_fetcher.cc ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698