Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(816)

Unified Diff: chrome/browser/extensions/webstore_inline_installer.h

Issue 7795032: Add link URL and success/failure callback parameters to chrome.webstore.install() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/webstore_inline_installer.h
diff --git a/chrome/browser/extensions/webstore_inline_installer.h b/chrome/browser/extensions/webstore_inline_installer.h
index d63eb0bfbe0d23b78d8bee566f6e3a4144804c17..df3549656638ffbf362909698d19d0b1e4b09188 100644
--- a/chrome/browser/extensions/webstore_inline_installer.h
+++ b/chrome/browser/extensions/webstore_inline_installer.h
@@ -14,6 +14,7 @@
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/webstore_install_helper.h"
#include "content/common/url_fetcher.h"
+#include "googleurl/src/gurl.h"
#include "third_party/skia/include/core/SkBitmap.h"
class TabContents;
@@ -32,12 +33,15 @@ class WebstoreInlineInstaller
public:
class Delegate {
public:
- virtual void OnInlineInstallSuccess() = 0;
- virtual void OnInlineInstallFailure(const std::string& error) = 0;
+ virtual void OnInlineInstallSuccess(int install_id) = 0;
+ virtual void OnInlineInstallFailure(int install_id,
+ const std::string& error) = 0;
};
WebstoreInlineInstaller(TabContents* tab_contents,
+ int install_id,
std::string webstore_item_id,
+ GURL requestor_url,
Delegate* d);
void BeginInstall();
@@ -82,7 +86,9 @@ class WebstoreInlineInstaller
void CompleteInstall(const std::string& error);
TabContents* tab_contents_;
+ int install_id_;
std::string id_;
+ GURL requestor_url_;
Delegate* delegate_;
// For fetching webstore JSON data.

Powered by Google App Engine
This is Rietveld 408576698