Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: components/nacl/renderer/pnacl_translation_resource_host.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/nacl/renderer/pnacl_translation_resource_host.h ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698