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_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_FACTORY_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/extensions/extension_install_prompt.h"
12 #include "chrome/browser/extensions/webstore_standalone_installer.h"
20 namespace extensions
{
22 class WebstoreInlineInstaller
;
24 class WebstoreInlineInstallerFactory
{
26 virtual ~WebstoreInlineInstallerFactory() {}
28 // Create a new WebstoreInlineInstallerInstance to be owned by the caller.
29 virtual WebstoreInlineInstaller
* CreateInstaller(
30 content::WebContents
* contents
,
31 const std::string
& webstore_item_id
,
32 const GURL
& requestor_url
,
33 const WebstoreStandaloneInstaller::Callback
& callback
);
36 } // namespace extensions
38 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_INLINE_INSTALLER_FACTORY_H_