| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_IMAGE_DECODER_H_ | 5 #ifndef CHROME_BROWSER_IMAGE_DECODER_H_ |
| 6 #define CHROME_BROWSER_IMAGE_DECODER_H_ | 6 #define CHROME_BROWSER_IMAGE_DECODER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 RequestMap image_request_id_map_; | 143 RequestMap image_request_id_map_; |
| 144 | 144 |
| 145 // Protects |image_request_id_map_| and |image_request_id_counter_|. | 145 // Protects |image_request_id_map_| and |image_request_id_counter_|. |
| 146 base::Lock map_lock_; | 146 base::Lock map_lock_; |
| 147 | 147 |
| 148 // The UtilityProcessHost requests are sent to. | 148 // The UtilityProcessHost requests are sent to. |
| 149 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; | 149 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; |
| 150 | 150 |
| 151 // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed, | 151 // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed, |
| 152 // unless a new decoding request resets the timer. | 152 // unless a new decoding request resets the timer. |
| 153 scoped_ptr<base::DelayTimer<ImageDecoder>> batch_mode_timer_; | 153 scoped_ptr<base::DelayTimer> batch_mode_timer_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(ImageDecoder); | 155 DISALLOW_COPY_AND_ASSIGN(ImageDecoder); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_IMAGE_DECODER_H_ | 158 #endif // CHROME_BROWSER_IMAGE_DECODER_H_ |
| OLD | NEW |