webstore_installer.h revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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_WEBSTORE_WEBSTORE_INSTALLER_H_
6#define CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_INSTALLER_H_
7
8#include "chrome/browser/extensions/webstore_install_with_prompt.h"
9
10class Profile;
11
12namespace app_list {
13
14// WebstoreInstaller handles install for web store search results.
15class WebstoreInstaller : public extensions::WebstoreInstallWithPrompt {
16 public:
17  typedef WebstoreStandaloneInstaller::Callback Callback;
18
19  WebstoreInstaller(const std::string& webstore_item_id,
20                    Profile* profile,
21                    gfx::NativeWindow parent_window,
22                    const Callback& callback);
23
24 private:
25  friend class base::RefCountedThreadSafe<WebstoreInstaller>;
26  virtual ~WebstoreInstaller();
27
28  DISALLOW_COPY_AND_ASSIGN(WebstoreInstaller);
29};
30
31}  // namespace app_list
32
33#endif  // CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_INSTALLER_H_
34