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

Unified Diff: chrome/browser/extensions/sandboxed_extension_unpacker.h

Issue 6995095: Move UtilityProcessHost to content and move the message sending/dispatching to the clients. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
Index: chrome/browser/extensions/sandboxed_extension_unpacker.h
===================================================================
--- chrome/browser/extensions/sandboxed_extension_unpacker.h (revision 88480)
+++ chrome/browser/extensions/sandboxed_extension_unpacker.h (working copy)
@@ -11,7 +11,7 @@
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/scoped_temp_dir.h"
-#include "chrome/browser/utility_process_host.h"
+#include "content/browser/utility_process_host.h"
class DictionaryValue;
class Extension;
@@ -187,11 +187,14 @@
// Starts the utility process that unpacks our extension.
void StartProcessOnIOThread(const FilePath& temp_crx_path);
- // SandboxedExtensionUnpacker
- virtual void OnUnpackExtensionSucceeded(const DictionaryValue& manifest);
- virtual void OnUnpackExtensionFailed(const std::string& error_message);
+ // UtilityProcessHost::Client
+ virtual bool OnMessageReceived(const IPC::Message& message);
virtual void OnProcessCrashed(int exit_code);
+ // IPC message handlers.
+ void OnUnpackExtensionSucceeded(const DictionaryValue& manifest);
+ void OnUnpackExtensionFailed(const std::string& error_message);
+
void ReportFailure(FailureReason reason, const std::string& message);
void ReportSuccess(const DictionaryValue& original_manifest);

Powered by Google App Engine
This is Rietveld 408576698