| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/image_decoder.h" | 5 #include "chrome/browser/chromeos/login/image_decoder.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/browser_thread.h" | 8 #include "content/browser/browser_thread.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 ImageDecoder::ImageDecoder(Delegate* delegate, | 12 ImageDecoder::ImageDecoder(Delegate* delegate, |
| 13 const std::vector<unsigned char>& image_data) | 13 const std::vector<unsigned char>& image_data) |
| 14 : delegate_(delegate), | 14 : delegate_(delegate), |
| 15 image_data_(image_data) { | 15 image_data_(image_data) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void ImageDecoder::Start() { | 18 void ImageDecoder::Start() { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 37 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 38 UtilityProcessHost* utility_process_host = | 38 UtilityProcessHost* utility_process_host = |
| 39 new UtilityProcessHost(rdh, | 39 new UtilityProcessHost(rdh, |
| 40 this, | 40 this, |
| 41 BrowserThread::UI); | 41 BrowserThread::UI); |
| 42 utility_process_host->StartImageDecoding(image_data); | 42 utility_process_host->StartImageDecoding(image_data); |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace chromeos | 45 } // namespace chromeos |
| 46 | 46 |
| OLD | NEW |