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

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

Issue 196663003: Introduce an extension parameter which is used to customize the extension. It's available for exter… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified test parameters Created 6 years, 9 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/pending_extension_info.h
diff --git a/chrome/browser/extensions/pending_extension_info.h b/chrome/browser/extensions/pending_extension_info.h
index fd803bde50df5937a78de48da22dfe1488dc9bc7..a3ea47b167da1395f64fd9da7fe5575814882632 100644
--- a/chrome/browser/extensions/pending_extension_info.h
+++ b/chrome/browser/extensions/pending_extension_info.h
@@ -27,26 +27,29 @@ class PendingExtensionInfo {
public:
typedef bool (*ShouldAllowInstallPredicate)(const Extension*);
- PendingExtensionInfo(
- const std::string& id,
- const GURL& update_url,
- const Version& version,
- ShouldAllowInstallPredicate should_allow_install,
- bool is_from_sync,
- bool install_silently,
- Manifest::Location install_source,
- int creation_flags,
- bool mark_acknowledged);
+ PendingExtensionInfo(const std::string& id,
+ const std::string& install_parameter,
+ const GURL& update_url,
+ const Version& version,
+ ShouldAllowInstallPredicate should_allow_install,
+ bool is_from_sync,
+ bool install_silently,
+ Manifest::Location install_source,
+ int creation_flags,
+ bool mark_acknowledged);
// Required for STL container membership. Should not be used directly.
PendingExtensionInfo();
+ ~PendingExtensionInfo();
+
// Consider two PendingExtensionInfos equal if their ids are equal.
bool operator==(const PendingExtensionInfo& rhs) const;
const std::string& id() const { return id_; }
const GURL& update_url() const { return update_url_; }
const Version& version() const { return version_; }
+ const std::string& install_parameter() const { return install_parameter_; }
// ShouldAllowInstall() returns the result of running constructor argument
// |should_allow_install| on an extension. After an extension is unpacked,
@@ -75,6 +78,7 @@ class PendingExtensionInfo {
GURL update_url_;
Version version_;
+ std::string install_parameter_;
// When the extension is about to be installed, this function is
// called. If this function returns true, the install proceeds. If
« no previous file with comments | « chrome/browser/extensions/external_registry_loader_win.cc ('k') | chrome/browser/extensions/pending_extension_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698