| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_WALLPAPER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // must be writable. | 351 // must be writable. |
| 352 void SetCustomizedDefaultWallpaper(const GURL& wallpaper_url, | 352 void SetCustomizedDefaultWallpaper(const GURL& wallpaper_url, |
| 353 const base::FilePath& downloaded_file, | 353 const base::FilePath& downloaded_file, |
| 354 const base::FilePath& resized_directory); | 354 const base::FilePath& resized_directory); |
| 355 | 355 |
| 356 private: | 356 private: |
| 357 friend class TestApi; | 357 friend class TestApi; |
| 358 friend class WallpaperManagerBrowserTest; | 358 friend class WallpaperManagerBrowserTest; |
| 359 friend class WallpaperManagerBrowserTestDefaultWallpaper; | 359 friend class WallpaperManagerBrowserTestDefaultWallpaper; |
| 360 friend class WallpaperManagerPolicyTest; | 360 friend class WallpaperManagerPolicyTest; |
| 361 friend class CustomizationWallpaperDownloaderBrowserTest; |
| 361 | 362 |
| 362 typedef std::map<std::string, gfx::ImageSkia> CustomWallpaperMap; | 363 typedef std::map<std::string, gfx::ImageSkia> CustomWallpaperMap; |
| 363 | 364 |
| 364 // Set |wallpaper| controlled by policy. | 365 // Set |wallpaper| controlled by policy. |
| 365 void SetPolicyControlledWallpaper(const std::string& user_id, | 366 void SetPolicyControlledWallpaper(const std::string& user_id, |
| 366 const UserImage& wallpaper); | 367 const UserImage& wallpaper); |
| 367 | 368 |
| 368 // Gets encoded wallpaper from cache. Returns true if success. | 369 // Gets encoded wallpaper from cache. Returns true if success. |
| 369 bool GetWallpaperFromCache(const std::string& user_id, | 370 bool GetWallpaperFromCache(const std::string& user_id, |
| 370 gfx::ImageSkia* wallpaper); | 371 gfx::ImageSkia* wallpaper); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 | 630 |
| 630 // Current decoded default image is stored in cache. | 631 // Current decoded default image is stored in cache. |
| 631 scoped_ptr<UserImage> default_wallpaper_image_; | 632 scoped_ptr<UserImage> default_wallpaper_image_; |
| 632 | 633 |
| 633 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); | 634 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); |
| 634 }; | 635 }; |
| 635 | 636 |
| 636 } // namespace chromeos | 637 } // namespace chromeos |
| 637 | 638 |
| 638 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ | 639 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ |
| OLD | NEW |