search_webstore_result.h revision 90dce4d38c5ff5333bea97d859d4e484e27edf0c
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 "chrome/browser/ui/app_list/search/chrome_search_result.h" 12#include "googleurl/src/gurl.h" 13 14class Profile; 15 16namespace app_list { 17 18// A "search in webstore" result. 19class SearchWebstoreResult : public ChromeSearchResult { 20 public: 21 SearchWebstoreResult(Profile* profile, const std::string& query); 22 virtual ~SearchWebstoreResult(); 23 24 // ChromeSearchResult overides: 25 virtual void Open(int event_flags) OVERRIDE; 26 virtual void InvokeAction(int action_index, int event_flags) OVERRIDE; 27 virtual scoped_ptr<ChromeSearchResult> Duplicate() OVERRIDE; 28 29 private: 30 Profile* profile_; 31 const std::string query_; 32 GURL launch_url_; 33 34 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult); 35}; 36 37} // namespace app_list 38 39#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ 40