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

Side by Side Diff: mojo/nacl/nonsfi/irt_pnacl_translator_compile.cc

Issue 1931963002: Build fix. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <fcntl.h> 5 #include <fcntl.h>
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "mojo/nacl/nonsfi/irt_mojo_nonsfi.h" 10 #include "mojo/nacl/nonsfi/irt_mojo_nonsfi.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 void ServeTranslateRequest(const struct nacl_irt_pnacl_compile_funcs* funcs) { 112 void ServeTranslateRequest(const struct nacl_irt_pnacl_compile_funcs* funcs) {
113 // Acquire the handle -- this is our mechanism to contact the 113 // Acquire the handle -- this is our mechanism to contact the
114 // content handler which called us. 114 // content handler which called us.
115 MojoHandle handle; 115 MojoHandle handle;
116 nacl::MojoGetInitialHandle(&handle); 116 nacl::MojoGetInitialHandle(&handle);
117 117
118 // Convert the MojoHandle into a ScopedMessagePipeHandle, and use that to 118 // Convert the MojoHandle into a ScopedMessagePipeHandle, and use that to
119 // implement the PexeCompiler interface. 119 // implement the PexeCompiler interface.
120 PexeCompilerImpl impl( 120 PexeCompilerImpl impl(
121 mojo::MakeRequest<mojo::nacl::PexeCompiler>( 121 mojo::InterfaceRequest<mojo::nacl::PexeCompiler>(
122 mojo::ScopedMessagePipeHandle(mojo::MessagePipeHandle(handle))), 122 mojo::ScopedMessagePipeHandle(mojo::MessagePipeHandle(handle))),
123 funcs); 123 funcs);
124 mojo::RunLoop::current()->Run(); 124 mojo::RunLoop::current()->Run();
125 } 125 }
126 126
127 } // namespace anonymous 127 } // namespace anonymous
128 128
129 namespace nacl { 129 namespace nacl {
130 130
131 const struct nacl_irt_private_pnacl_translator_compile 131 const struct nacl_irt_private_pnacl_translator_compile
132 nacl_irt_private_pnacl_translator_compile = { 132 nacl_irt_private_pnacl_translator_compile = {
133 ServeTranslateRequest 133 ServeTranslateRequest
134 }; 134 };
135 135
136 } // namespace nacl 136 } // namespace nacl
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698