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

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

Issue 22730003: Warm-up the App List when enabled from the webstore and not shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | Annotate | Revision Log
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_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 virtual void HandleFirstRun() = 0; 41 virtual void HandleFirstRun() = 0;
42 42
43 virtual base::FilePath GetProfilePath( 43 virtual base::FilePath GetProfilePath(
44 const base::FilePath& user_data_dir) = 0; 44 const base::FilePath& user_data_dir) = 0;
45 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; 45 virtual void SetProfilePath(const base::FilePath& profile_path) = 0;
46 46
47 // Show the app list for the profile configured in the user data dir for the 47 // Show the app list for the profile configured in the user data dir for the
48 // current browser process. 48 // current browser process.
49 virtual void Show() = 0; 49 virtual void Show() = 0;
50 50
51 // Create the app list UI, and maintain its state, but do not show it.
52 virtual void CreateForProfile(Profile* requested_profile) = 0;
53
51 // Show the app list for the given profile. If it differs from the profile the 54 // Show the app list for the given profile. If it differs from the profile the
52 // app list is currently showing, repopulate the app list and save the new 55 // app list is currently showing, repopulate the app list and save the new
53 // profile to local prefs as the default app list profile. 56 // profile to local prefs as the default app list profile.
54 virtual void ShowForProfile(Profile* requested_profile) = 0; 57 virtual void ShowForProfile(Profile* requested_profile) = 0;
55 58
56 // Dismiss the app list. 59 // Dismiss the app list.
57 virtual void DismissAppList() = 0; 60 virtual void DismissAppList() = 0;
58 61
59 // Get the profile the app list is currently showing. 62 // Get the profile the app list is currently showing.
60 virtual Profile* GetCurrentAppListProfile() = 0; 63 virtual Profile* GetCurrentAppListProfile() = 0;
(...skipping 16 matching lines...) Expand all
77 virtual ~AppListService() {} 80 virtual ~AppListService() {}
78 81
79 // Do any once off initialization needed for the app list. 82 // Do any once off initialization needed for the app list.
80 virtual void Init(Profile* initial_profile) = 0; 83 virtual void Init(Profile* initial_profile) = 0;
81 84
82 private: 85 private:
83 DISALLOW_COPY_AND_ASSIGN(AppListService); 86 DISALLOW_COPY_AND_ASSIGN(AppListService);
84 }; 87 };
85 88
86 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 89 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698