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

Unified Diff: chrome/browser/chromeos/login/image_decoder.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/chromeos/login/image_decoder.h
===================================================================
--- chrome/browser/chromeos/login/image_decoder.h (revision 88480)
+++ chrome/browser/chromeos/login/image_decoder.h (working copy)
@@ -9,8 +9,10 @@
#include <string>
#include <vector>
-#include "chrome/browser/utility_process_host.h"
+#include "content/browser/utility_process_host.h"
+class SkBitmap;
+
namespace chromeos {
// Decodes an image in a sandboxed process.
@@ -43,9 +45,12 @@
virtual ~ImageDecoder();
// Overidden from UtilityProcessHost::Client:
- virtual void OnDecodeImageSucceeded(const SkBitmap& decoded_image);
- virtual void OnDecodeImageFailed();
+ virtual bool OnMessageReceived(const IPC::Message& message);
+ // IPC message handlers.
+ void OnDecodeImageSucceeded(const SkBitmap& decoded_image);
+ void OnDecodeImageFailed();
+
// Launches sandboxed process that will decode the image.
void DecodeImageInSandbox(const std::vector<unsigned char>& image_data);

Powered by Google App Engine
This is Rietveld 408576698