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

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

Issue 1631373003: Refactor ProfileInfoCache in c/b/ui/app_list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, add sorting of ProfileAttributesEntry Created 4 years, 10 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/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_info_cache_observer.h" 16 #include "chrome/browser/profiles/profile_attributes_storage.h"
17 #include "chrome/browser/ui/app_list/app_list_service.h" 17 #include "chrome/browser/ui/app_list/app_list_service.h"
18 #include "chrome/browser/ui/app_list/profile_loader.h" 18 #include "chrome/browser/ui/app_list/profile_loader.h"
19 19
20 class AppListViewDelegate; 20 class AppListViewDelegate;
21 class ProfileStore; 21 class ProfileStore;
22 22
23 namespace base { 23 namespace base {
24 class FilePath; 24 class FilePath;
25 } 25 }
26 26
27 namespace test { 27 namespace test {
28 class AppListServiceImplTestApi; 28 class AppListServiceImplTestApi;
29 } 29 }
30 30
31 // Parts of the AppListService implementation shared between platforms. 31 // Parts of the AppListService implementation shared between platforms.
32 class AppListServiceImpl : public AppListService, 32 class AppListServiceImpl : public AppListService,
33 public ProfileInfoCacheObserver { 33 public ProfileAttributesStorage::Observer {
34 public: 34 public:
35 ~AppListServiceImpl() override; 35 ~AppListServiceImpl() override;
36 36
37 // Constructor used for testing. 37 // Constructor used for testing.
38 AppListServiceImpl(const base::CommandLine& command_line, 38 AppListServiceImpl(const base::CommandLine& command_line,
39 PrefService* local_state, 39 PrefService* local_state,
40 scoped_ptr<ProfileStore> profile_store); 40 scoped_ptr<ProfileStore> profile_store);
41 41
42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the 42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the
43 // given |profile|. 43 // given |profile|.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 PrefService* local_state_; 97 PrefService* local_state_;
98 scoped_ptr<ProfileLoader> profile_loader_; 98 scoped_ptr<ProfileLoader> profile_loader_;
99 scoped_ptr<AppListViewDelegate> view_delegate_; 99 scoped_ptr<AppListViewDelegate> view_delegate_;
100 100
101 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 101 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 103 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
104 }; 104 };
105 105
106 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 106 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698