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

Side by Side Diff: content/common/sandbox_init_mac.cc

Issue 1313533003: Fix some extern usage in .cc files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/public/common/sandbox_init.h" 5 #include "content/common/sandbox_init_mac.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/sandbox_mac.h" 10 #include "content/common/sandbox_mac.h"
11 #include "content/public/common/content_switches.h" 11 #include "content/public/common/content_switches.h"
12 #include "content/public/common/sandbox_init.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 bool InitializeSandbox(int sandbox_type, const base::FilePath& allowed_dir) { 16 bool InitializeSandbox(int sandbox_type, const base::FilePath& allowed_dir) {
16 // Warm up APIs before turning on the sandbox. 17 // Warm up APIs before turning on the sandbox.
17 Sandbox::SandboxWarmup(sandbox_type); 18 Sandbox::SandboxWarmup(sandbox_type);
18 19
19 // Actually sandbox the process. 20 // Actually sandbox the process.
20 return Sandbox::EnableSandbox(sandbox_type, allowed_dir); 21 return Sandbox::EnableSandbox(sandbox_type, allowed_dir);
21 } 22 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 76 }
76 77
77 bool BrokerDuplicateSharedMemoryHandle( 78 bool BrokerDuplicateSharedMemoryHandle(
78 const base::SharedMemoryHandle& source_handle, 79 const base::SharedMemoryHandle& source_handle,
79 base::ProcessId target_process_id, 80 base::ProcessId target_process_id,
80 base::SharedMemoryHandle* target_handle) { 81 base::SharedMemoryHandle* target_handle) {
81 *target_handle = base::SharedMemory::DuplicateHandle(source_handle); 82 *target_handle = base::SharedMemory::DuplicateHandle(source_handle);
82 return base::SharedMemory::IsHandleValid(*target_handle); 83 return base::SharedMemory::IsHandleValid(*target_handle);
83 } 84 }
84 85
85 extern const char kBootstrapPortNameForNPAPIPlugins[] =
86 "org.chromium.sandbox.real_bootstrap_server";
87
88 } // namespace content 86 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698