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

Side by Side Diff: chrome/installer/util/google_update_util.h

Issue 180243021: Add google_update::GetUntrustedDataValueFromTag() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ 6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace google_update { 10 namespace google_update {
11 11
12 // If user-level Google Update is absent, calls the system-level 12 // If user-level Google Update is absent, calls the system-level
13 // GoogleUpdateSetup.exe to install it, and waits until it finishes. 13 // GoogleUpdateSetup.exe to install it, and waits until it finishes.
14 // Returns true if already installed, installed successfully, or 14 // Returns true if already installed, installed successfully, or
15 // if Google Update is not present at system-level. 15 // if Google Update is not present at system-level.
16 // Returns false if the installation fails. 16 // Returns false if the installation fails.
17 bool EnsureUserLevelGoogleUpdatePresent(); 17 bool EnsureUserLevelGoogleUpdatePresent();
18 18
19 // Tell Google Update that an uninstall has taken place. This gives it a chance 19 // Tell Google Update that an uninstall has taken place. This gives it a chance
20 // to uninstall itself straight away if no more products are installed on the 20 // to uninstall itself straight away if no more products are installed on the
21 // system rather than waiting for the next time the scheduled task runs. 21 // system rather than waiting for the next time the scheduled task runs.
22 // Returns false if Google Update could not be executed, or times out. 22 // Returns false if Google Update could not be executed, or times out.
23 bool UninstallGoogleUpdate(bool system_install); 23 bool UninstallGoogleUpdate(bool system_install);
24 24
25 // Returns the value corresponding to |key| in untrusted data passed from 25 // Returns the value corresponding to |key| in untrusted data passed from
26 // Google Update. Returns an empty string if |key| is absent or if its value 26 // Google Update. Returns an empty string if |key| is absent or if its value
27 // contains non-printable characters. 27 // contains non-printable characters.
28 std::string GetUntrustedDataValue(const std::string& key); 28 std::string GetUntrustedDataValue(const std::string& key);
29 29
30 // Returns the value corresponding to |key| in untrusted data passed from
31 // |tag|. Returns an empty string if |key| is absent or if its value
grt (UTC plus 2) 2014/03/03 15:18:26 please document the expected format of |tag|.
jackhou1 2014/03/04 00:56:28 Done.
32 // contains non-printable characters.
33 std::string GetUntrustedDataValueFromTag(const std::string& tag,
34 const std::string& key);
35
30 } // namespace google_update 36 } // namespace google_update
31 37
32 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_ 38 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/google_update_util.cc » ('j') | chrome/installer/util/google_update_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698