| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // profile loads and start or end browser keep alive accordingly. | 72 // profile loads and start or end browser keep alive accordingly. |
| 73 void IncrementPendingProfileLoads(); | 73 void IncrementPendingProfileLoads(); |
| 74 void DecrementPendingProfileLoads(); | 74 void DecrementPendingProfileLoads(); |
| 75 | 75 |
| 76 // AppListService overrides: | 76 // AppListService overrides: |
| 77 // Update the profile path stored in local prefs, load it (if not already | 77 // Update the profile path stored in local prefs, load it (if not already |
| 78 // loaded), and show the app list. | 78 // loaded), and show the app list. |
| 79 virtual void SetAppListProfile( | 79 virtual void SetAppListProfile( |
| 80 const base::FilePath& profile_file_path) OVERRIDE; | 80 const base::FilePath& profile_file_path) OVERRIDE; |
| 81 | 81 |
| 82 virtual void ShowForSavedProfile() OVERRIDE; |
| 82 virtual Profile* GetCurrentAppListProfile() OVERRIDE; | 83 virtual Profile* GetCurrentAppListProfile() OVERRIDE; |
| 83 | 84 |
| 84 // ProfileInfoCacheObserver overrides: | 85 // ProfileInfoCacheObserver overrides: |
| 85 virtual void OnProfileAdded(const base::FilePath& profilePath) OVERRIDE; | 86 virtual void OnProfileAdded(const base::FilePath& profilePath) OVERRIDE; |
| 86 virtual void OnProfileWillBeRemoved( | 87 virtual void OnProfileWillBeRemoved( |
| 87 const base::FilePath& profile_path) OVERRIDE; | 88 const base::FilePath& profile_path) OVERRIDE; |
| 88 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | 89 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 89 const string16& profile_name) OVERRIDE; | 90 const string16& profile_name) OVERRIDE; |
| 90 virtual void OnProfileNameChanged(const base::FilePath& profile_path, | 91 virtual void OnProfileNameChanged(const base::FilePath& profile_path, |
| 91 const string16& profile_name) OVERRIDE; | 92 const string16& profile_name) OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 109 // How many profile loads are pending. | 110 // How many profile loads are pending. |
| 110 int pending_profile_loads_; | 111 int pending_profile_loads_; |
| 111 | 112 |
| 112 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; | 113 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; |
| 113 content::NotificationRegistrar registrar_; | 114 content::NotificationRegistrar registrar_; |
| 114 | 115 |
| 115 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); | 116 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ | 119 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ |
| OLD | NEW |