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

Side by Side Diff: components/nacl/renderer/plugin/pnacl_translate_thread.cc

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 8 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 (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 "components/nacl/renderer/plugin/pnacl_translate_thread.h" 5 #include "components/nacl/renderer/plugin/pnacl_translate_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <iterator> 9 #include <iterator>
10 #include <sstream> 10 #include <sstream>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/nacl/renderer/plugin/plugin.h" 14 #include "components/nacl/renderer/plugin/plugin.h"
15 #include "components/nacl/renderer/plugin/plugin_error.h" 15 #include "components/nacl/renderer/plugin/plugin_error.h"
16 #include "content/public/common/sandbox_init.h" 16 #include "content/public/common/sandbox_init.h"
17 #include "ppapi/c/ppb_file_io.h" 17 #include "ppapi/c/ppb_file_io.h"
18 #include "ppapi/cpp/var.h" 18 #include "ppapi/cpp/var.h"
19 #include "ppapi/proxy/ppapi_messages.h" 19 #include "ppapi/proxy/ppapi_messages.h"
20 20
21 namespace content {
22
23 bool BrokerDuplicateHandle(HANDLE source_handle,
24 DWORD target_process_id,
25 HANDLE* target_handle,
26 DWORD desired_access,
27 DWORD options);
28 }
29
21 namespace plugin { 30 namespace plugin {
22 namespace { 31 namespace {
23 32
24 template <typename Val> 33 template <typename Val>
25 std::string MakeCommandLineArg(const char* key, const Val val) { 34 std::string MakeCommandLineArg(const char* key, const Val val) {
26 std::stringstream ss; 35 std::stringstream ss;
27 ss << key << val; 36 ss << key << val;
28 return ss.str(); 37 return ss.str();
29 } 38 }
30 39
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 buffer_cond_.Signal(); 417 buffer_cond_.Signal();
409 } 418 }
410 419
411 PnaclTranslateThread::~PnaclTranslateThread() { 420 PnaclTranslateThread::~PnaclTranslateThread() {
412 AbortSubprocesses(); 421 AbortSubprocesses();
413 if (translate_thread_) 422 if (translate_thread_)
414 translate_thread_->Join(); 423 translate_thread_->Join();
415 } 424 }
416 425
417 } // namespace plugin 426 } // namespace plugin
OLDNEW
« no previous file with comments | « components/nacl/renderer/manifest_service_channel.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698