summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_prefs.h
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 15:15:09 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 15:15:09 +0000
commita65882cfd89af9fc51fc34781fd9ebfc4978ea4c (patch)
tree1bc1a7484c4d286a1ce26af1076c13cd40682e20 /chrome/browser/extensions/extension_prefs.h
parent96fdf3dd2d66d4c5b556df3574b324f36cafcd81 (diff)
downloadchromium_src-a65882cfd89af9fc51fc34781fd9ebfc4978ea4c.zip
chromium_src-a65882cfd89af9fc51fc34781fd9ebfc4978ea4c.tar.gz
chromium_src-a65882cfd89af9fc51fc34781fd9ebfc4978ea4c.tar.bz2
Allow an extension to dynamically set extra data in its update URL, in order
to communicate dynamic information to its update server if needed. BUG=none TEST=Make sure that existing extensions that do no set any extra data are not adversely affected. Review URL: http://codereview.chromium.org/4725002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65946 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_prefs.h')
-rw-r--r--chrome/browser/extensions/extension_prefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index eb16329..298d03c 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -187,6 +187,13 @@ class ExtensionPrefs {
// highest current application launch index found.
int GetNextAppLaunchIndex();
+ // The extension's update URL data. If not empty, the ExtensionUpdater
+ // will append a ap= parameter to the URL when checking if a new version
+ // of the extension is available.
+ void SetUpdateUrlData(const std::string& extension_id,
+ const std::string& data);
+ std::string GetUpdateUrlData(const std::string& extension_id);
+
static void RegisterUserPrefs(PrefService* prefs);
// The underlying PrefService.