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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
10 #include "base/basictypes.h"
11 #include "ui/app_list/search_result.h"
14 class AppListControllerDelegate;
19 // A "search in webstore" result.
20 class SearchWebstoreResult : public SearchResult {
22 SearchWebstoreResult(Profile* profile,
23 AppListControllerDelegate* controller,
24 const std::string& query);
25 ~SearchWebstoreResult() override;
27 // SearchResult overrides:
28 void Open(int event_flags) override;
29 scoped_ptr<SearchResult> Duplicate() override;
33 AppListControllerDelegate* controller_;
34 const std::string query_;
37 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult);
40 } // namespace app_list
42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_