Chromium Code Reviews| Index: chrome/browser/image_decoder.h | 
| diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h | 
| index 69caa43abde465d66bae86d5146571f2e95cf8ca..dc41c25d5e90683df640ffdfede2cb5722df97cd 100644 | 
| --- a/chrome/browser/image_decoder.h | 
| +++ b/chrome/browser/image_decoder.h | 
| @@ -33,8 +33,14 @@ class ImageDecoder : public content::UtilityProcessHostClient { | 
| virtual ~Delegate() {} | 
| }; | 
| + enum ImageCodec { | 
| + DEFAULT_CODEC = 0, // Uses WebKit image decoding (via WebImage). | 
| + ONLY_IJG_LIBJPEG_CODEC, // Restrict decoding to IJG libjpeg codec. | 
| + }; | 
| + | 
| ImageDecoder(Delegate* delegate, | 
| - const std::string& image_data); | 
| + const std::string& image_data, | 
| + ImageCodec image_codec); | 
| // Starts image decoding. | 
| void Start(); | 
| @@ -61,6 +67,7 @@ class ImageDecoder : public content::UtilityProcessHostClient { | 
| Delegate* delegate_; | 
| std::vector<unsigned char> image_data_; | 
| + ImageCodec image_codec_; | 
| 
 
sky
2012/08/29 15:21:54
const
 
Emmanuel Saint-loubert-Bié
2012/08/29 17:52:08
Done.
 
 | 
| content::BrowserThread::ID target_thread_id_; | 
| DISALLOW_COPY_AND_ASSIGN(ImageDecoder); |