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

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

Issue 2701123002: AppList Performance Optimization 2 (Closed)
Patch Set: Cache the tokenized name Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/app_search_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace app_list { 23 namespace app_list {
24 24
25 class AppListItemList; 25 class AppListItemList;
26 26
27 class AppSearchProvider : public SearchProvider { 27 class AppSearchProvider : public SearchProvider {
28 public: 28 public:
29 class App; 29 class App;
30 class DataSource; 30 class DataSource;
31 typedef std::vector<std::unique_ptr<App>> Apps; 31 using Apps = std::vector<std::unique_ptr<App>>;
32 32
33 AppSearchProvider(Profile* profile, 33 AppSearchProvider(Profile* profile,
34 AppListControllerDelegate* list_controller, 34 AppListControllerDelegate* list_controller,
35 std::unique_ptr<base::Clock> clock, 35 std::unique_ptr<base::Clock> clock,
36 AppListItemList* top_level_item_list); 36 AppListItemList* top_level_item_list);
37 ~AppSearchProvider() override; 37 ~AppSearchProvider() override;
38 38
39 // SearchProvider overrides: 39 // SearchProvider overrides:
40 void Start(bool is_voice_query, const base::string16& query) override; 40 void Start(bool is_voice_query, const base::string16& query) override;
41 void Stop() override; 41 void Stop() override;
(...skipping 15 matching lines...) Expand all
57 std::unique_ptr<base::Clock> clock_; 57 std::unique_ptr<base::Clock> clock_;
58 std::vector<std::unique_ptr<DataSource>> data_sources_; 58 std::vector<std::unique_ptr<DataSource>> data_sources_;
59 base::WeakPtrFactory<AppSearchProvider> update_results_factory_; 59 base::WeakPtrFactory<AppSearchProvider> update_results_factory_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider); 61 DISALLOW_COPY_AND_ASSIGN(AppSearchProvider);
62 }; 62 };
63 63
64 } // namespace app_list 64 } // namespace app_list
65 65
66 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_ 66 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_APP_SEARCH_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/app_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698