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

Unified Diff: chrome/browser/utility_process_host.h

Issue 115595: Have the browser process rewrite manifest.json and theme images that the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/extensions/extensions_service_unittest.cc ('k') | chrome/browser/utility_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/utility_process_host.h
===================================================================
--- chrome/browser/utility_process_host.h (revision 16736)
+++ chrome/browser/utility_process_host.h (working copy)
@@ -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 @@
// 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);
« no previous file with comments | « chrome/browser/extensions/extensions_service_unittest.cc ('k') | chrome/browser/utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698