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

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

Issue 23494053: Remove NOTIFICATION_SYSTEM_SETTING_CHANGED, switch CrosSettings to base::CallbackRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 7 years, 3 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 <string> 8 #include <string>
9 9
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/threading/sequenced_worker_pool.h" 15 #include "base/threading/sequenced_worker_pool.h"
15 #include "base/time/time.h" 16 #include "base/time/time.h"
16 #include "chrome/browser/chromeos/login/user.h" 17 #include "chrome/browser/chromeos/login/user.h"
17 #include "chrome/browser/chromeos/login/user_image.h" 18 #include "chrome/browser/chromeos/login/user_image.h"
18 #include "chrome/browser/chromeos/login/user_image_loader.h" 19 #include "chrome/browser/chromeos/login/user_image_loader.h"
20 #include "chrome/browser/chromeos/settings/cros_settings.h"
19 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
21 #include "third_party/icu/source/i18n/unicode/timezone.h" 23 #include "third_party/icu/source/i18n/unicode/timezone.h"
22 #include "ui/gfx/image/image_skia.h" 24 #include "ui/gfx/image/image_skia.h"
23 25
24 class CommandLine; 26 class CommandLine;
25 class PrefRegistrySimple; 27 class PrefRegistrySimple;
26 28
27 namespace base { 29 namespace base {
28 class SequencedTaskRunner; 30 class SequencedTaskRunner;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 CommandLine* command_line_for_testing_; 350 CommandLine* command_line_for_testing_;
349 351
350 // Caches wallpapers of users. Accessed only on UI thread. 352 // Caches wallpapers of users. Accessed only on UI thread.
351 CustomWallpaperMap wallpaper_cache_; 353 CustomWallpaperMap wallpaper_cache_;
352 354
353 // The last selected user on user pod row. 355 // The last selected user on user pod row.
354 std::string last_selected_user_; 356 std::string last_selected_user_;
355 357
356 bool should_cache_wallpaper_; 358 bool should_cache_wallpaper_;
357 359
360 scoped_ptr<CrosSettings::ObserverSubscription>
361 show_user_name_on_signin_subscription_;
362
358 base::WeakPtrFactory<WallpaperManager> weak_factory_; 363 base::WeakPtrFactory<WallpaperManager> weak_factory_;
359 364
360 content::NotificationRegistrar registrar_; 365 content::NotificationRegistrar registrar_;
361 366
362 DISALLOW_COPY_AND_ASSIGN(WallpaperManager); 367 DISALLOW_COPY_AND_ASSIGN(WallpaperManager);
363 }; 368 };
364 369
365 } // namespace chromeos 370 } // namespace chromeos
366 371
367 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_ 372 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WALLPAPER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698