Index: trunk/src/chrome/installer/util/google_update_util.h |
=================================================================== |
--- trunk/src/chrome/installer/util/google_update_util.h (revision 285705) |
+++ trunk/src/chrome/installer/util/google_update_util.h (working copy) |
@@ -5,6 +5,8 @@ |
#ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |
#define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |
+#include <string> |
+ |
namespace google_update { |
// If user-level Google Update is absent, calls the system-level |
@@ -25,6 +27,18 @@ |
// GoogleUpdateSettings::ReenableAutoupdatesForApp() to do the work. |
void ElevateIfNeededToReenableUpdates(); |
+// Returns the value corresponding to |key| in untrusted data passed from |
+// Google Update. Returns an empty string if |key| is absent or if its value |
+// contains non-printable characters. |
+std::string GetUntrustedDataValue(const std::string& key); |
+ |
+// Returns the value corresponding to |key| in untrusted data passed from |
+// |tag|. |tag| should be a printable list of key-value pairs, e.g. |
+// "key1=value1&key2=value2". Returns an empty string if |key| is absent or if |
+// its value contains non-printable characters. |
+std::string GetUntrustedDataValueFromTag(const std::string& tag, |
+ const std::string& key); |
+ |
} // namespace google_update |
#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ |