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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/host_desktop.h" 12 #include "chrome/browser/ui/host_desktop.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 class AppListControllerDelegate; 15 class AppListControllerDelegate;
16 class CommandLine;
17 class PrefRegistrySimple; 16 class PrefRegistrySimple;
18 class Profile; 17 class Profile;
19 18
20 namespace base { 19 namespace base {
20 class CommandLine;
21 class FilePath; 21 class FilePath;
22 } 22 }
23 23
24 namespace gfx { 24 namespace gfx {
25 class ImageSkia; 25 class ImageSkia;
26 } 26 }
27 27
28 class AppListService { 28 class AppListService {
29 public: 29 public:
30 // Source that triggers the app launcher being enabled. This is used for UMA 30 // Source that triggers the app launcher being enabled. This is used for UMA
(...skipping 13 matching lines...) Expand all
44 44
45 // Get the AppListService for the current platform and specified 45 // Get the AppListService for the current platform and specified
46 // |desktop_type|. 46 // |desktop_type|.
47 static AppListService* Get(chrome::HostDesktopType desktop_type); 47 static AppListService* Get(chrome::HostDesktopType desktop_type);
48 48
49 // Call Init for all AppListService instances on this platform. 49 // Call Init for all AppListService instances on this platform.
50 static void InitAll(Profile* initial_profile); 50 static void InitAll(Profile* initial_profile);
51 51
52 static void RegisterPrefs(PrefRegistrySimple* registry); 52 static void RegisterPrefs(PrefRegistrySimple* registry);
53 53
54 static void RecordShowTimings(const CommandLine& command_line); 54 static void RecordShowTimings(const base::CommandLine& command_line);
55 55
56 // Indicates that |callback| should be called next time the app list is 56 // Indicates that |callback| should be called next time the app list is
57 // painted. 57 // painted.
58 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; 58 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0;
59 59
60 // Perform Chrome first run logic. This is executed before Chrome's threads 60 // Perform Chrome first run logic. This is executed before Chrome's threads
61 // have been created. 61 // have been created.
62 virtual void HandleFirstRun() = 0; 62 virtual void HandleFirstRun() = 0;
63 63
64 virtual base::FilePath GetProfilePath( 64 virtual base::FilePath GetProfilePath(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 virtual ~AppListService() {} 108 virtual ~AppListService() {}
109 109
110 // Do any once off initialization needed for the app list. 110 // Do any once off initialization needed for the app list.
111 virtual void Init(Profile* initial_profile) = 0; 111 virtual void Init(Profile* initial_profile) = 0;
112 112
113 private: 113 private:
114 DISALLOW_COPY_AND_ASSIGN(AppListService); 114 DISALLOW_COPY_AND_ASSIGN(AppListService);
115 }; 115 };
116 116
117 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 117 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_test.cc ('k') | chrome/browser/ui/app_list/app_list_service_disabled.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698