Index: chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h |
diff --git a/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h b/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c329ec89f901e7733a232c39f4f0fe3fe945ec67 |
--- /dev/null |
+++ b/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ |
+#define CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ |
+ |
+#include "components/arc/common/app.mojom.h" |
+#include "ui/app_list/search_provider.h" |
+ |
+class Profile; |
+class AppListControllerDelegate; |
+ |
+namespace app_list { |
+ |
+class PlayStoreSearchProvider : public SearchProvider { |
+ public: |
+ // app_list::SearchProvider overrides; |
Luis Héctor Chávez
2017/06/22 15:42:09
Move this to after L24.
Jiaquan He
2017/06/22 19:12:41
Done.
|
+ PlayStoreSearchProvider(int max_results, |
+ Profile* profile, |
+ AppListControllerDelegate* list_controller); |
+ ~PlayStoreSearchProvider() override; |
+ |
+ protected: |
+ void Start(bool is_voice_query, const base::string16& query) override; |
+ void Stop() override; |
+ |
+ private: |
+ void OnResults(std::vector<PlayStoreSearchResultUniquePtr> results); |
Luis Héctor Chávez
2017/06/22 15:42:09
Newline below the methods.
Jiaquan He
2017/06/22 19:12:41
Done.
|
+ const int max_results_; |
+ Profile* profile_; |
Luis Héctor Chávez
2017/06/22 15:42:10
Profile* const profile_;
Also, comment about its
Jiaquan He
2017/06/22 19:12:41
Done.
|
+ // list_controller_ is owned by AppListServiceAsh and lives |
+ // until the service finishes. |
+ AppListControllerDelegate* list_controller_; |
Luis Héctor Chávez
2017/06/22 15:42:09
const
Jiaquan He
2017/06/22 19:12:41
Done.
|
+ base::WeakPtrFactory<PlayStoreSearchProvider> weak_ptr_factory_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PlayStoreSearchProvider); |
+}; |
+ |
+} // namespace app_list |
+ |
+#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ |