Chromium Code Reviews| Index: chrome/browser/image_decoder.h |
| diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h |
| index 96000e029e632ff1945dc4e0c38e766d68c8906a..244ca163ad382858a8ff64dc9ec423f21d51fe3b 100644 |
| --- a/chrome/browser/image_decoder.h |
| +++ b/chrome/browser/image_decoder.h |
| @@ -17,6 +17,7 @@ |
| #include "base/timer/timer.h" |
| #include "content/public/browser/utility_process_host.h" |
| #include "content/public/browser/utility_process_host_client.h" |
| +#include "services/image_decoder/public/interfaces/image_decoder.mojom.h" |
| class SkBitmap; |
| @@ -125,6 +126,9 @@ class ImageDecoder : public content::UtilityProcessHostClient { |
| void OnDecodeImageSucceeded(const SkBitmap& decoded_image, int request_id); |
| void OnDecodeImageFailed(int request_id); |
| + // Mojo IPC callback. |
| + void OnDecodeImageDone(int request_id, skia::BitmapPtr image); |
| + |
| // Removes the job from the map of requests. |
| void RemoveJob(const scoped_refptr<Job>& job); |
| @@ -146,6 +150,9 @@ class ImageDecoder : public content::UtilityProcessHostClient { |
| // The time Start was last called. |
| base::TimeTicks last_request_; |
| + // Mojo service connection. Must always be bound and reset on the IO thread. |
|
Sam McNally
2015/04/08 08:09:00
And only used on the IO thread.
Anand Mistry (off Chromium)
2015/04/09 05:25:03
Done.
|
| + services::ImageDecoderPtr decoder_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ImageDecoder); |
| }; |