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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_impl.h

Issue 16035013: ProfileInfoCacheObserver: All methods now have a default empty implementation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_shortcut_manager_win.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698