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_SEARCH_SEARCH_WEBSTORE_RESULT_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "ui/app_list/search_result.h" | 11 #include "ui/app_list/search_result.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 class AppListControllerDelegate; | 14 class AppListControllerDelegate; |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace app_list { | 17 namespace app_list { |
18 | 18 |
19 // A "search in webstore" result. | 19 // A "search in webstore" result. |
20 class SearchWebstoreResult : public SearchResult { | 20 class SearchWebstoreResult : public SearchResult { |
21 public: | 21 public: |
22 SearchWebstoreResult(Profile* profile, | 22 SearchWebstoreResult(Profile* profile, |
23 AppListControllerDelegate* controller, | 23 AppListControllerDelegate* controller, |
24 const std::string& query); | 24 const std::string& query); |
25 ~SearchWebstoreResult() override; | 25 ~SearchWebstoreResult() override; |
26 | 26 |
27 // SearchResult overrides: | 27 // SearchResult overrides: |
28 void Open(int event_flags) override; | 28 void Open(int event_flags) override; |
29 scoped_ptr<SearchResult> Duplicate() const override; | 29 std::unique_ptr<SearchResult> Duplicate() const override; |
30 | 30 |
31 private: | 31 private: |
32 Profile* profile_; | 32 Profile* profile_; |
33 AppListControllerDelegate* controller_; | 33 AppListControllerDelegate* controller_; |
34 const std::string query_; | 34 const std::string query_; |
35 GURL launch_url_; | 35 GURL launch_url_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult); | 37 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace app_list | 40 } // namespace app_list |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ | 42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ |
OLD | NEW |