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

Unified Diff: components/component_updater/default_component_installer.h

Issue 1872053002: Implement an API to allow passing an "ap" parameter to component updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: components/component_updater/default_component_installer.h
diff --git a/components/component_updater/default_component_installer.h b/components/component_updater/default_component_installer.h
index 9de80d6589dc76f566708ab166d7519e08f2c7df..f445fe656d3c661e8d3065fca47058c7699f494f 100644
--- a/components/component_updater/default_component_installer.h
+++ b/components/component_updater/default_component_installer.h
@@ -83,6 +83,12 @@ class ComponentInstallerTraits {
// Returns the human-readable name of the component.
virtual std::string GetName() const = 0;
+
+ // Returns the additional parameters to be used in the update checks for
+ // this component. A compatible server may use this attribute to negotiate
+ // special update rules when issuing an update response.
+ // The current implementation restricts ap to ^([-+_=a-zA-Z0-9]{0,256})$
+ virtual std::string GetAp() const = 0;
};
// A DefaultComponentInstaller is intended to be final, and not derived from.
« no previous file with comments | « chrome/browser/component_updater/widevine_cdm_component_installer.cc ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698