OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |