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 13 matching lines...) Expand all Loading... |
24 class FilePath; | 24 class FilePath; |
25 } | 25 } |
26 | 26 |
27 // Parts of the AppListService implementation shared between platforms. | 27 // Parts of the AppListService implementation shared between platforms. |
28 class AppListServiceImpl : public AppListService, | 28 class AppListServiceImpl : public AppListService, |
29 public ProfileInfoCacheObserver { | 29 public ProfileInfoCacheObserver { |
30 public: | 30 public: |
31 virtual ~AppListServiceImpl(); | 31 virtual ~AppListServiceImpl(); |
32 | 32 |
33 // Constructor used for testing. | 33 // Constructor used for testing. |
34 AppListServiceImpl(const CommandLine& command_line, | 34 AppListServiceImpl(const base::CommandLine& command_line, |
35 PrefService* local_state, | 35 PrefService* local_state, |
36 scoped_ptr<ProfileStore> profile_store, | 36 scoped_ptr<ProfileStore> profile_store, |
37 scoped_ptr<KeepAliveService> keep_alive_service); | 37 scoped_ptr<KeepAliveService> keep_alive_service); |
38 | 38 |
39 void RecordAppListLaunch(); | 39 void RecordAppListLaunch(); |
40 static void RecordAppListAppLaunch(); | 40 static void RecordAppListAppLaunch(); |
41 | 41 |
42 // AppListService overrides: | 42 // AppListService overrides: |
43 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE; | 43 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE; |
44 virtual void HandleFirstRun() OVERRIDE; | 44 virtual void HandleFirstRun() OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void OnProfileLoaded(int profile_load_sequence_id, | 76 void OnProfileLoaded(int profile_load_sequence_id, |
77 Profile* profile, | 77 Profile* profile, |
78 Profile::CreateStatus status); | 78 Profile::CreateStatus status); |
79 | 79 |
80 // ProfileInfoCacheObserver overrides: | 80 // ProfileInfoCacheObserver overrides: |
81 virtual void OnProfileWillBeRemoved( | 81 virtual void OnProfileWillBeRemoved( |
82 const base::FilePath& profile_path) OVERRIDE; | 82 const base::FilePath& profile_path) OVERRIDE; |
83 | 83 |
84 scoped_ptr<ProfileStore> profile_store_; | 84 scoped_ptr<ProfileStore> profile_store_; |
85 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; | 85 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; |
86 CommandLine command_line_; | 86 base::CommandLine command_line_; |
87 PrefService* local_state_; | 87 PrefService* local_state_; |
88 scoped_ptr<ProfileLoader> profile_loader_; | 88 scoped_ptr<ProfileLoader> profile_loader_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); | 90 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ | 93 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ |
OLD | NEW |