| 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 class CustomizationWallpaperDownloaderBrowserTest; |
| 199 | 200 |
| 200 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > | 201 typedef std::vector<base::WeakPtr<ServicesCustomizationExternalLoader> > |
| 201 ExternalLoaders; | 202 ExternalLoaders; |
| 202 | 203 |
| 203 // Guard for a single application task (wallpaper downloading, for example). | 204 // Guard for a single application task (wallpaper downloading, for example). |
| 204 class ApplyingTask; | 205 class ApplyingTask; |
| 205 | 206 |
| 206 // C-tor for singleton construction. | 207 // C-tor for singleton construction. |
| 207 ServicesCustomizationDocument(); | 208 ServicesCustomizationDocument(); |
| 208 | 209 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 319 |
| 319 // Weak factory for callbacks. | 320 // Weak factory for callbacks. |
| 320 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; | 321 base::WeakPtrFactory<ServicesCustomizationDocument> weak_ptr_factory_; |
| 321 | 322 |
| 322 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); | 323 DISALLOW_COPY_AND_ASSIGN(ServicesCustomizationDocument); |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 } // namespace chromeos | 326 } // namespace chromeos |
| 326 | 327 |
| 327 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ | 328 #endif // CHROME_BROWSER_CHROMEOS_CUSTOMIZATION_DOCUMENT_H_ |
| OLD | NEW |