| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // AppListService overrides: | 72 // AppListService overrides: |
| 73 // Update the profile path stored in local prefs, load it (if not already | 73 // Update the profile path stored in local prefs, load it (if not already |
| 74 // loaded), and show the app list. | 74 // loaded), and show the app list. |
| 75 virtual void SetAppListProfile( | 75 virtual void SetAppListProfile( |
| 76 const base::FilePath& profile_file_path) OVERRIDE; | 76 const base::FilePath& profile_file_path) OVERRIDE; |
| 77 | 77 |
| 78 virtual Profile* GetCurrentAppListProfile() OVERRIDE; | 78 virtual Profile* GetCurrentAppListProfile() OVERRIDE; |
| 79 | 79 |
| 80 // ProfileInfoCacheObserver overrides: | 80 // ProfileInfoCacheObserver overrides: |
| 81 virtual void OnProfileAdded(const base::FilePath& profilePath) OVERRIDE; | |
| 82 virtual void OnProfileWillBeRemoved( | 81 virtual void OnProfileWillBeRemoved( |
| 83 const base::FilePath& profile_path) OVERRIDE; | 82 const base::FilePath& profile_path) OVERRIDE; |
| 84 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | |
| 85 const string16& profile_name) OVERRIDE; | |
| 86 virtual void OnProfileNameChanged(const base::FilePath& profile_path, | |
| 87 const string16& profile_name) OVERRIDE; | |
| 88 virtual void OnProfileAvatarChanged( | |
| 89 const base::FilePath& profile_path) OVERRIDE; | |
| 90 | 83 |
| 91 // content::NotificationObserver | 84 // content::NotificationObserver |
| 92 virtual void Observe(int type, | 85 virtual void Observe(int type, |
| 93 const content::NotificationSource& source, | 86 const content::NotificationSource& source, |
| 94 const content::NotificationDetails& details) OVERRIDE; | 87 const content::NotificationDetails& details) OVERRIDE; |
| 95 | 88 |
| 96 // The profile the AppList is currently displaying. | 89 // The profile the AppList is currently displaying. |
| 97 Profile* profile_; | 90 Profile* profile_; |
| 98 | 91 |
| 99 // Incremented to indicate that pending profile loads are no longer valid. | 92 // Incremented to indicate that pending profile loads are no longer valid. |
| 100 int profile_load_sequence_id_; | 93 int profile_load_sequence_id_; |
| 101 | 94 |
| 102 // How many profile loads are pending. | 95 // How many profile loads are pending. |
| 103 int pending_profile_loads_; | 96 int pending_profile_loads_; |
| 104 | 97 |
| 105 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; | 98 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; |
| 106 content::NotificationRegistrar registrar_; | 99 content::NotificationRegistrar registrar_; |
| 107 | 100 |
| 108 ProfileLoader profile_loader_; | 101 ProfileLoader profile_loader_; |
| 109 | 102 |
| 110 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); | 103 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); |
| 111 }; | 104 }; |
| 112 | 105 |
| 113 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ | 106 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ |
| OLD | NEW |