OLD | NEW |
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_DOCUMENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 static void ShutdownForTesting(); | 189 static void ShutdownForTesting(); |
190 | 190 |
191 // These methods are also called by WallpaperManager to get "global default" | 191 // These methods are also called by WallpaperManager to get "global default" |
192 // customized wallpaper path (and to init default wallpaper path from it) | 192 // customized wallpaper path (and to init default wallpaper path from it) |
193 // before first wallpaper is shown. | 193 // before first wallpaper is shown. |
194 static base::FilePath GetCustomizedWallpaperCacheDir(); | 194 static base::FilePath GetCustomizedWallpaperCacheDir(); |
195 static base::FilePath GetCustomizedWallpaperDownloadedFileName(); | 195 static base::FilePath GetCustomizedWallpaperDownloadedFileName(); |
196 | 196 |
197 private: | 197 private: |
198 friend struct DefaultSingletonTraits<ServicesCustomizationDocument>; | 198 friend struct DefaultSingletonTraits<ServicesCustomizationDocument>; |
| 199 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest, |
| 200 OEMWallpaperIsPresent); |
| 201 FRIEND_TEST_ALL_PREFIXES(CustomizationWallpaperDownloaderBrowserTest, |
| 202 OEMWallpaperRetryFetch); |
199 | 203 |
200 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > | 204 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > |
201 ExternalLoaders; | 205 ExternalLoaders; |
202 | 206 |
203 // Guard for a single application task (wallpaper downloading, for example). | 207 // Guard for a single application task (wallpaper downloading, for example). |
204 class ApplyingTask; | 208 class ApplyingTask; |
205 | 209 |
206 // C-tor for singleton construction. | 210 // C-tor for singleton construction. |
207 ServicesCustomizationDocument(); | 211 ServicesCustomizationDocument(); |
208 | 212 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 322 |
319 // Weak factory for callbacks. | 323 // Weak factory for callbacks. |
320 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; | 324 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; |
321 | 325 |
322 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); | 326 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); |
323 }; | 327 }; |
324 | 328 |
325 } // namespace chromeos | 329 } // namespace chromeos |
326 | 330 |
327 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ | 331 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
OLD | NEW |