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

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

Issue 274163003: Revert 263741 "Enable surprise me wallpaper for new profiles." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: rebase Created 6 years, 7 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) 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 // Called when the wallpaper policy has been cleared for |user_id|. 327 // Called when the wallpaper policy has been cleared for |user_id|.
328 void OnPolicyCleared(const std::string& policy, const std::string& user_id); 328 void OnPolicyCleared(const std::string& policy, const std::string& user_id);
329 329
330 // Called when the policy-set wallpaper has been fetched. Initiates decoding 330 // Called when the policy-set wallpaper has been fetched. Initiates decoding
331 // of the JPEG |data| with a callback to SetPolicyControlledWallpaper(). 331 // of the JPEG |data| with a callback to SetPolicyControlledWallpaper().
332 void OnPolicyFetched(const std::string& policy, 332 void OnPolicyFetched(const std::string& policy,
333 const std::string& user_id, 333 const std::string& user_id,
334 scoped_ptr<std::string> data); 334 scoped_ptr<std::string> data);
335 335
336 // Enable surprise me wallpaper mode.
337 void EnableSurpriseMe();
338
339 // This is called from CustomizationDocument. 336 // This is called from CustomizationDocument.
340 // |resized_directory| is the directory where resized versions are stored and 337 // |resized_directory| is the directory where resized versions are stored and
341 // must be writable. 338 // must be writable.
342 void SetCustomizedDefaultWallpaper(const GURL& wallpaper_url, 339 void SetCustomizedDefaultWallpaper(const GURL& wallpaper_url,
343 const base::FilePath& downloaded_file, 340 const base::FilePath& downloaded_file,
344 const base::FilePath& resized_directory); 341 const base::FilePath& resized_directory);
345 342
346 private: 343 private:
347 friend class TestApi; 344 friend class TestApi;
348 friend class WallpaperManagerBrowserTest; 345 friend class WallpaperManagerBrowserTest;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 600
604 // Current decoded default image is stored in cache. 601 // Current decoded default image is stored in cache.
605 scoped_ptr<UserImage> default_wallpaper_image_; 602 scoped_ptr<UserImage> default_wallpaper_image_;
606 603
607 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); 604 DISALLOW_COPY_AND_ASSIGN(WallpaperManager);
608 }; 605 };
609 606
610 } // namespace chromeos 607 } // namespace chromeos
611 608
612 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 609 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698