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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « components/view_manager/server_view.cc ('k') | components/wallpaper/wallpaper_resizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 // Caches wallpapers of users. Accessed only on UI thread. 582 // Caches wallpapers of users. Accessed only on UI thread.
583 CustomWallpaperMap wallpaper_cache_; 583 CustomWallpaperMap wallpaper_cache_;
584 584
585 // The last selected user on user pod row. 585 // The last selected user on user pod row.
586 std::string last_selected_user_; 586 std::string last_selected_user_;
587 587
588 bool should_cache_wallpaper_; 588 bool should_cache_wallpaper_;
589 589
590 content::NotificationRegistrar registrar_; 590 content::NotificationRegistrar registrar_;
591 591
592 ObserverList<Observer> observers_; 592 base::ObserverList<Observer> observers_;
593 593
594 // These members are for the scheduler: 594 // These members are for the scheduler:
595 595
596 // When last load attempt finished. 596 // When last load attempt finished.
597 base::Time last_load_finished_at_; 597 base::Time last_load_finished_at_;
598 598
599 // last N wallpaper loads times. 599 // last N wallpaper loads times.
600 std::deque<base::TimeDelta> last_load_times_; 600 std::deque<base::TimeDelta> last_load_times_;
601 601
602 base::FilePath default_small_wallpaper_file_; 602 base::FilePath default_small_wallpaper_file_;
(...skipping 10 matching lines...) Expand all
613 613
614 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_; 614 base::WeakPtrFactory<WallpaperManagerBase> weak_factory_;
615 615
616 private: 616 private:
617 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase); 617 DISALLOW_COPY_AND_ASSIGN(WallpaperManagerBase);
618 }; 618 };
619 619
620 } // namespace chromeos 620 } // namespace chromeos
621 621
622 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_ 622 #endif // COMPONENTS_WALLPAPER_WALLPAPER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « components/view_manager/server_view.cc ('k') | components/wallpaper/wallpaper_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698