| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "pnacl_translation_resource_host.h" | 5 #include "pnacl_translation_resource_host.h" |
| 6 | 6 |
| 7 #include "base/single_thread_task_runner.h" |
| 7 #include "components/nacl/common/nacl_host_messages.h" | 8 #include "components/nacl/common/nacl_host_messages.h" |
| 8 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/shared_impl/ppapi_globals.h" | 10 #include "ppapi/shared_impl/ppapi_globals.h" |
| 10 | 11 |
| 11 using ppapi::PpapiGlobals; | 12 using ppapi::PpapiGlobals; |
| 12 | 13 |
| 13 PnaclTranslationResourceHost::PnaclTranslationResourceHost( | 14 PnaclTranslationResourceHost::PnaclTranslationResourceHost( |
| 14 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner) | 15 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner) |
| 15 : io_task_runner_(io_task_runner), sender_(NULL) { | 16 : io_task_runner_(io_task_runner), sender_(NULL) { |
| 16 } | 17 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 ++it) { | 138 ++it) { |
| 138 PpapiGlobals::Get()->GetMainThreadMessageLoop()->PostTask( | 139 PpapiGlobals::Get()->GetMainThreadMessageLoop()->PostTask( |
| 139 FROM_HERE, | 140 FROM_HERE, |
| 140 base::Bind(it->second, | 141 base::Bind(it->second, |
| 141 static_cast<int32_t>(PP_ERROR_ABORTED), | 142 static_cast<int32_t>(PP_ERROR_ABORTED), |
| 142 false, | 143 false, |
| 143 PP_kInvalidFileHandle)); | 144 PP_kInvalidFileHandle)); |
| 144 } | 145 } |
| 145 pending_cache_requests_.clear(); | 146 pending_cache_requests_.clear(); |
| 146 } | 147 } |
| OLD | NEW |