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

Side by Side Diff: chrome/browser/ui/app_list/search/app_search_provider.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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_SEARCH_APP_SEARCH_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/scoped_observer.h" 13 #include "base/scoped_observer.h"
14 #include "ui/app_list/search_provider.h" 14 #include "ui/app_list/search_provider.h"
15 15
16 class AppListControllerDelegate; 16 class AppListControllerDelegate;
17 class Profile; 17 class Profile;
18 18
19 namespace base { 19 namespace base {
20 class Clock; 20 class Clock;
21 } 21 }
22 22
23 namespace app_list { 23 namespace app_list {
24 24
25 class AppListItemList; 25 class AppListItemList;
26 26
27 namespace test {
28 class AppSearchProviderTest;
29 }
30
31 class AppSearchProvider : public SearchProvider { 27 class AppSearchProvider : public SearchProvider {
32 public: 28 public:
33 class App; 29 class App;
34 class DataSource; 30 class DataSource;
35 typedef std::vector<std::unique_ptr<App>> Apps; 31 typedef std::vector<std::unique_ptr<App>> Apps;
36 32
37 AppSearchProvider(Profile* profile, 33 AppSearchProvider(Profile* profile,
38 AppListControllerDelegate* list_controller, 34 AppListControllerDelegate* list_controller,
39 std::unique_ptr<base::Clock> clock, 35 std::unique_ptr<base::Clock> clock,
40 AppListItemList* top_level_item_list); 36 AppListItemList* top_level_item_list);
(...skipping 20 matching lines...) Expand all
61 std::unique_ptr<base::Clock> clock_; 57 std::unique_ptr<base::Clock> clock_;
62 std::vector<std::unique_ptr<DataSource>> data_sources_; 58 std::vector<std::unique_ptr<DataSource>> data_sources_;
63 base::WeakPtrFactory<AppSearchProvider> update_results_factory_; 59 base::WeakPtrFactory<AppSearchProvider> update_results_factory_;
64 60
65 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); 61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider);
66 }; 62 };
67 63
68 } // namespace app_list 64 } // namespace app_list
69 65
70 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ 66 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698