summaryrefslogtreecommitdiffstats
path: root/chrome/browser/utility_process_host.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 19:02:19 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 19:02:19 +0000
commit902f7cd528743a286439cfca87266aa1b723a8bf (patch)
tree986e45ef007fba1dd21436bcf1a00470ca6ae1e4 /chrome/browser/utility_process_host.h
parent5be94dffc6b19e0ed8397879ad60fe06e498cb3a (diff)
downloadchromium_src-902f7cd528743a286439cfca87266aa1b723a8bf.zip
chromium_src-902f7cd528743a286439cfca87266aa1b723a8bf.tar.gz
chromium_src-902f7cd528743a286439cfca87266aa1b723a8bf.tar.bz2
Have the browser process rewrite manifest.json and theme/page action images
that the extension unpacker process parsed. BUG=11680 Review URL: http://codereview.chromium.org/115595 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/utility_process_host.h')
-rw-r--r--chrome/browser/utility_process_host.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/chrome/browser/utility_process_host.h b/chrome/browser/utility_process_host.h
index 8cb281e..0efaa56 100644
--- a/chrome/browser/utility_process_host.h
+++ b/chrome/browser/utility_process_host.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UTILITY_PROCESS_HOST_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "base/ref_counted.h"
@@ -14,7 +15,9 @@
#include "chrome/common/ipc_channel.h"
class CommandLine;
+class DictionaryValue;
class MessageLoop;
+class SkBitmap;
// This class acts as the browser-side host to a utility child process. A
// utility process is a short-lived sandboxed process that is created to run
@@ -32,10 +35,17 @@ class UtilityProcessHost : public ChildProcessHost {
// Called when the process has crashed.
virtual void OnProcessCrashed() {}
- // Called when the process sends a reply to an UnpackExtension message.
- // If success if false, error_message contains a description of the problem.
- virtual void OnUnpackExtensionReply(bool success,
- const std::string& error_message) {}
+ // Called when the extension has unpacked successfully. |manifest| is the
+ // parsed manifest.json file. |images| contains a list of decoded images
+ // and the associated paths where those images live on disk.
+ virtual void OnUnpackExtensionSucceeded(
+ const DictionaryValue& manifest,
+ const std::vector< Tuple2<SkBitmap, FilePath> >& images) {}
+
+ // Called when an error occurred while unpacking the extension.
+ // |error_message| contains a description of the problem.
+ virtual void OnUnpackExtensionFailed(const std::string& error_message) {}
+
private:
friend class UtilityProcessHost;
void OnMessageReceived(const IPC::Message& message);