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

Side by Side Diff: chrome/browser/chromeos/customization/customization_document.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_
6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_ 6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const std::string& keyboard_layout() const { return keyboard_layout_; } 101 const std::string& keyboard_layout() const { return keyboard_layout_; }
102 102
103 private: 103 private:
104 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, Basic); 104 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, Basic);
105 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, VPD); 105 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, VPD);
106 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, BadManifest); 106 FRIEND_TEST_ALL_PREFIXES(StartupCustomizationDocumentTest, BadManifest);
107 FRIEND_TEST_ALL_PREFIXES(ServicesCustomizationDocumentTest, MultiLanguage); 107 FRIEND_TEST_ALL_PREFIXES(ServicesCustomizationDocumentTest, MultiLanguage);
108 friend class OobeLocalizationTest; 108 friend class OobeLocalizationTest;
109 friend void InitStartupCustomizationDocumentForTesting( 109 friend void InitStartupCustomizationDocumentForTesting(
110 const std::string& manifest); 110 const std::string& manifest);
111 friend struct DefaultSingletonTraits<StartupCustomizationDocument>; 111 friend struct base::DefaultSingletonTraits<StartupCustomizationDocument>;
112 112
113 // C-tor for singleton construction. 113 // C-tor for singleton construction.
114 StartupCustomizationDocument(); 114 StartupCustomizationDocument();
115 115
116 // C-tor for test construction. 116 // C-tor for test construction.
117 StartupCustomizationDocument(system::StatisticsProvider* provider, 117 StartupCustomizationDocument(system::StatisticsProvider* provider,
118 const std::string& manifest); 118 const std::string& manifest);
119 119
120 ~StartupCustomizationDocument() override; 120 ~StartupCustomizationDocument() override;
121 121
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // customized wallpaper path (and to init default wallpaper path from it) 191 // customized wallpaper path (and to init default wallpaper path from it)
192 // before first wallpaper is shown. 192 // before first wallpaper is shown.
193 static base::FilePath GetCustomizedWallpaperCacheDir(); 193 static base::FilePath GetCustomizedWallpaperCacheDir();
194 static base::FilePath GetCustomizedWallpaperDownloadedFileName(); 194 static base::FilePath GetCustomizedWallpaperDownloadedFileName();
195 195
196 CustomizationWallpaperDownloader* wallpaper_downloader_for_testing() { 196 CustomizationWallpaperDownloader* wallpaper_downloader_for_testing() {
197 return wallpaper_downloader_.get(); 197 return wallpaper_downloader_.get();
198 } 198 }
199 199
200 private: 200 private:
201 friend struct DefaultSingletonTraits<ServicesCustomizationDocument>; 201 friend struct base::DefaultSingletonTraits<ServicesCustomizationDocument>;
202 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest, 202 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
203 OEMWallpaperIsPresent); 203 OEMWallpaperIsPresent);
204 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest, 204 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest,
205 OEMWallpaperRetryFetch); 205 OEMWallpaperRetryFetch);
206 206
207 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > 207 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> >
208 ExternalLoaders; 208 ExternalLoaders;
209 209
210 // Guard for a single application task (wallpaper downloading, for example). 210 // Guard for a single application task (wallpaper downloading, for example).
211 class ApplyingTask; 211 class ApplyingTask;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 // Weak factory for callbacks. 326 // Weak factory for callbacks.
327 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; 327 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_;
328 328
329 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); 329 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument);
330 }; 330 };
331 331
332 } // namespace chromeos 332 } // namespace chromeos
333 333
334 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_ 334 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_CUSTOMIZATION_DOCUMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698