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

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

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small fixups Created 7 years, 4 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 18 matching lines...) Expand all
29 29
30 // Parts of the AppListService implementation shared between platforms. 30 // Parts of the AppListService implementation shared between platforms.
31 class AppListServiceImpl : public AppListService, 31 class AppListServiceImpl : public AppListService,
32 public ProfileInfoCacheObserver, 32 public ProfileInfoCacheObserver,
33 public content::NotificationObserver { 33 public content::NotificationObserver {
34 public: 34 public:
35 static void RecordAppListLaunch(); 35 static void RecordAppListLaunch();
36 static void RecordAppListAppLaunch(); 36 static void RecordAppListAppLaunch();
37 static void SendAppListStats(); 37 static void SendAppListStats();
38 38
39 // Shows the app list for the profile at the given |profile_path|. If the
40 // profile has not been loaded, this will load the profile and then show the
41 // app list.
42 void ShowForProfileByPath(base::FilePath profile_path);
43
39 protected: 44 protected:
40 AppListServiceImpl(); 45 AppListServiceImpl();
41 virtual ~AppListServiceImpl(); 46 virtual ~AppListServiceImpl();
42 47
43 Profile* profile() const { return profile_; } 48 Profile* profile() const { return profile_; }
44 void SetProfile(Profile* new_profile); 49 void SetProfile(Profile* new_profile);
45 void InvalidatePendingProfileLoads(); 50 void InvalidatePendingProfileLoads();
46 ProfileLoader& profile_loader() { return profile_loader_; } 51 ProfileLoader& profile_loader() { return profile_loader_; }
47 const ProfileLoader& profile_loader() const { return profile_loader_; } 52 const ProfileLoader& profile_loader() const { return profile_loader_; }
48 53
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 104
100 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 105 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
101 content::NotificationRegistrar registrar_; 106 content::NotificationRegistrar registrar_;
102 107
103 ProfileLoader profile_loader_; 108 ProfileLoader profile_loader_;
104 109
105 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 110 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
106 }; 111 };
107 112
108 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 113 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698