summaryrefslogtreecommitdiffstats
path: root/chrome/browser/utility_process_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/utility_process_host.h')
-rw-r--r--chrome/browser/utility_process_host.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.h b/chrome/browser/utility_process_host.h
index 329f856..c52c424 100644
--- a/chrome/browser/utility_process_host.h
+++ b/chrome/browser/utility_process_host.h
@@ -11,6 +11,7 @@
#include "base/ref_counted.h"
#include "base/task.h"
#include "chrome/common/child_process_host.h"
+#include "chrome/common/extensions/update_manifest.h"
#include "ipc/ipc_channel.h"
class CommandLine;
@@ -54,6 +55,15 @@ class UtilityProcessHost : public ChildProcessHost {
virtual void OnUnpackWebResourceFailed(
const std::string& error_message) {}
+ // Called when an update manifest xml file was successfully parsed.
+ virtual void OnParseUpdateManifestSucceeded(
+ const UpdateManifest::ResultList& list) {}
+
+ // Called when an update manifest xml file failed parsing. |error_message|
+ // contains details suitable for logging.
+ virtual void OnParseUpdateManifestFailed(
+ const std::string& error_message) {}
+
private:
friend class UtilityProcessHost;
void OnMessageReceived(const IPC::Message& message);
@@ -79,6 +89,9 @@ class UtilityProcessHost : public ChildProcessHost {
// web resource server format(s).
bool StartWebResourceUnpacker(const std::string& data);
+ // Start parsing an extensions auto-update manifest xml file.
+ bool StartUpdateManifestParse(const std::string& xml);
+
protected:
// Allow these methods to be overridden for tests.
virtual std::wstring GetUtilityProcessCmd();