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

Side by Side Diff: components/wallpaper/wallpaper_manager_base.h

Issue 1886653002: Remove WallpaperManager dependency on Cryptohome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase (raw_salt_ is now properly set). Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 6 #define COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // |resized_directory| is the directory where resized versions are stored and 339 // |resized_directory| is the directory where resized versions are stored and
340 // must be writable. 340 // must be writable.
341 virtual void SetCustomizedDefaultWallpaper( 341 virtual void SetCustomizedDefaultWallpaper(
342 const GURL& wallpaper_url, 342 const GURL& wallpaper_url,
343 const base::FilePath& downloaded_file, 343 const base::FilePath& downloaded_file,
344 const base::FilePath& resized_directory); 344 const base::FilePath& resized_directory);
345 345
346 // Returns queue size. 346 // Returns queue size.
347 virtual size_t GetPendingListSizeForTesting() const = 0; 347 virtual size_t GetPendingListSizeForTesting() const = 0;
348 348
349 // Ruturns files identifier for the user. 349 // Ruturns files identifier for the |account_id|.
350 virtual WallpaperFilesId GetFilesId(const user_manager::User& user) const = 0; 350 virtual WallpaperFilesId GetFilesId(const AccountId& account_id) const = 0;
351 351
352 protected: 352 protected:
353 friend class TestApi; 353 friend class TestApi;
354 friend class WallpaperManagerBrowserTest; 354 friend class WallpaperManagerBrowserTest;
355 friend class WallpaperManagerBrowserTestDefaultWallpaper; 355 friend class WallpaperManagerBrowserTestDefaultWallpaper;
356 friend class WallpaperManagerPolicyTest; 356 friend class WallpaperManagerPolicyTest;
357 357
358 // The |CustomWallpaperElement| contains |first| the path of the image which 358 // The |CustomWallpaperElement| contains |first| the path of the image which
359 // is currently being loaded and or in progress of being loaded and |second| 359 // is currently being loaded and or in progress of being loaded and |second|
360 // the image itself. 360 // the image itself.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 603
604 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; 604 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_;
605 605
606 private: 606 private:
607 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); 607 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase);
608 }; 608 };
609 609
610 } // namespace wallpaper 610 } // namespace wallpaper
611 611
612 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 612 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « chromeos/cryptohome/system_salt_getter.cc ('k') | components/wallpaper/wallpaper_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698