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

Side by Side Diff: components/nacl/loader/nacl_listener.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 "base/run_loop.h" 5 #include "base/run_loop.h"
6 #include "components/nacl/loader/nacl_listener.h" 6 #include "components/nacl/loader/nacl_listener.h"
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 void DebugStubPortSelectedHandler(uint16_t port) { 96 void DebugStubPortSelectedHandler(uint16_t port) {
97 g_listener->Send(new NaClProcessHostMsg_DebugStubPortSelected(port)); 97 g_listener->Send(new NaClProcessHostMsg_DebugStubPortSelected(port));
98 } 98 }
99 99
100 #endif 100 #endif
101 101
102 // Creates the PPAPI IPC channel between the NaCl IRT and the host 102 // Creates the PPAPI IPC channel between the NaCl IRT and the host
103 // (browser/renderer) process, and starts to listen it on the thread where 103 // (browser/renderer) process, and starts to listen it on the thread where
104 // the given message_loop_proxy runs. 104 // the given task runner runs.
105 // Also, creates and sets the corresponding NaClDesc to the given nap with 105 // Also, creates and sets the corresponding NaClDesc to the given nap with
106 // the FD #. 106 // the FD #.
107 void SetUpIPCAdapter( 107 void SetUpIPCAdapter(
108 IPC::ChannelHandle* handle, 108 IPC::ChannelHandle* handle,
109 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 109 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
110 struct NaClApp* nap, 110 struct NaClApp* nap,
111 int nacl_fd, 111 int nacl_fd,
112 NaClIPCAdapter::ResolveFileTokenCallback resolve_file_token_cb, 112 NaClIPCAdapter::ResolveFileTokenCallback resolve_file_token_cb,
113 NaClIPCAdapter::OpenResourceCallback open_resource_cb) { 113 NaClIPCAdapter::OpenResourceCallback open_resource_cb) {
114 scoped_refptr<NaClIPCAdapter> ipc_adapter(new NaClIPCAdapter( 114 scoped_refptr<NaClIPCAdapter> ipc_adapter(new NaClIPCAdapter(
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 451
452 void NaClListener::OnFileTokenResolved( 452 void NaClListener::OnFileTokenResolved(
453 uint64_t token_lo, 453 uint64_t token_lo,
454 uint64_t token_hi, 454 uint64_t token_hi,
455 IPC::PlatformFileForTransit ipc_fd, 455 IPC::PlatformFileForTransit ipc_fd,
456 base::FilePath file_path) { 456 base::FilePath file_path) {
457 resolved_cb_.Run(ipc_fd, file_path); 457 resolved_cb_.Run(ipc_fd, file_path);
458 resolved_cb_.Reset(); 458 resolved_cb_.Reset();
459 } 459 }
OLDNEW
« no previous file with comments | « components/nacl/browser/pnacl_translation_cache.cc ('k') | components/nacl/renderer/manifest_service_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698