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