| 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 #include "chrome/browser/image_decoder.h" | 5 #include "chrome/browser/image_decoder.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "build/build_config.h" |
| 9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/common/chrome_utility_messages.h" | 11 #include "chrome/common/chrome_utility_messages.h" |
| 11 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/browser/utility_process_host.h" | 14 #include "content/public/browser/utility_process_host.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 15 | 16 |
| 16 using content::BrowserThread; | 17 using content::BrowserThread; |
| 17 using content::UtilityProcessHost; | 18 using content::UtilityProcessHost; |
| 18 | 19 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 auto it = image_request_id_map_.find(request_id); | 282 auto it = image_request_id_map_.find(request_id); |
| 282 if (it == image_request_id_map_.end()) | 283 if (it == image_request_id_map_.end()) |
| 283 return; | 284 return; |
| 284 image_request = it->second; | 285 image_request = it->second; |
| 285 image_request_id_map_.erase(it); | 286 image_request_id_map_.erase(it); |
| 286 } | 287 } |
| 287 | 288 |
| 288 DCHECK(image_request->task_runner()->RunsTasksOnCurrentThread()); | 289 DCHECK(image_request->task_runner()->RunsTasksOnCurrentThread()); |
| 289 image_request->OnDecodeImageFailed(); | 290 image_request->OnDecodeImageFailed(); |
| 290 } | 291 } |
| OLD | NEW |