Chromium Code Reviews| Index: chrome/browser/image_decoder.h |
| diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h |
| index 24f4d89bad6070486eb3b985f6a22b52143744f3..9ec54d2e724d842aafd567710c455c29acf98c3c 100644 |
| --- a/chrome/browser/image_decoder.h |
| +++ b/chrome/browser/image_decoder.h |
| @@ -9,6 +9,7 @@ |
| #include <vector> |
| #include "base/compiler_specific.h" |
| +#include "base/threading/sequenced_worker_pool.h" |
| #include "content/public/browser/browser_thread.h" |
|
Joao da Silva
2013/01/22 10:04:12
Not needed
bshe
2013/01/22 15:36:26
Done.
|
| #include "content/public/browser/utility_process_host_client.h" |
| @@ -42,8 +43,8 @@ class ImageDecoder : public content::UtilityProcessHostClient { |
| const std::string& image_data, |
| ImageCodec image_codec); |
| - // Starts image decoding. |
| - void Start(); |
| + // Starts image decoding on current thread of |task_runner|. |
| + void Start(scoped_refptr<base::SequencedTaskRunner> task_runner); |
|
Joao da Silva
2013/01/22 10:04:12
#include "base/memory/ref_counted.h"
bshe
2013/01/22 15:36:26
Done.
|
| const std::vector<unsigned char>& get_image_data() const { |
| return image_data_; |
| @@ -68,7 +69,7 @@ class ImageDecoder : public content::UtilityProcessHostClient { |
| Delegate* delegate_; |
| std::vector<unsigned char> image_data_; |
| const ImageCodec image_codec_; |
| - content::BrowserThread::ID target_thread_id_; |
| + scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| DISALLOW_COPY_AND_ASSIGN(ImageDecoder); |
| }; |