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

Side by Side Diff: content/browser/bootstrap_sandbox_mac.cc

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep rebasing keep rebasing... 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/bootstrap_sandbox_mac.h" 5 #include "content/browser/bootstrap_sandbox_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 #include "content/common/sandbox_init_mac.h" 11 #include "content/common/sandbox_init_mac.h"
12 #include "content/public/browser/browser_child_process_observer.h" 12 #include "content/public/browser/browser_child_process_observer.h"
13 #include "content/public/browser/child_process_data.h" 13 #include "content/public/browser/child_process_data.h"
14 #include "content/public/common/sandbox_type_mac.h" 14 #include "content/public/common/sandbox_type.h"
15 #include "sandbox/mac/bootstrap_sandbox.h" 15 #include "sandbox/mac/bootstrap_sandbox.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 namespace { 19 namespace {
20 20
21 // This class is responsible for creating the BootstrapSandbox global 21 // This class is responsible for creating the BootstrapSandbox global
22 // singleton, as well as registering all associated policies with it. 22 // singleton, as well as registering all associated policies with it.
23 class BootstrapSandboxPolicy : public BrowserChildProcessObserver { 23 class BootstrapSandboxPolicy : public BrowserChildProcessObserver {
24 public: 24 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool ShouldEnableBootstrapSandbox() { 79 bool ShouldEnableBootstrapSandbox() {
80 // TODO(rsesek): Re-enable when crbug.com/501128 is fixed. 80 // TODO(rsesek): Re-enable when crbug.com/501128 is fixed.
81 return false; 81 return false;
82 } 82 }
83 83
84 sandbox::BootstrapSandbox* GetBootstrapSandbox() { 84 sandbox::BootstrapSandbox* GetBootstrapSandbox() {
85 return BootstrapSandboxPolicy::GetInstance()->sandbox(); 85 return BootstrapSandboxPolicy::GetInstance()->sandbox();
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_main_platform_delegate_mac.mm ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698