OLD | NEW |
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 #ifndef CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ |
6 #define CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ | 6 #define CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
11 #include "content/public/browser/browser_child_process_observer.h" | 12 #include "content/public/browser/browser_child_process_observer.h" |
12 #include "content/public/browser/render_process_host_observer.h" | 13 #include "content/public/browser/render_process_host_observer.h" |
13 #include "content/public/common/sandbox_type.h" | 14 #include "content/public/common/sandbox_type.h" |
14 | 15 |
15 namespace sandbox { | 16 namespace sandbox { |
16 class BootstrapSandbox; | 17 class BootstrapSandbox; |
17 struct BootstrapSandboxPolicy; | 18 struct BootstrapSandboxPolicy; |
18 } | 19 } |
19 | 20 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 private: | 54 private: |
54 friend struct base::DefaultSingletonTraits<BootstrapSandboxManager>; | 55 friend struct base::DefaultSingletonTraits<BootstrapSandboxManager>; |
55 BootstrapSandboxManager(); | 56 BootstrapSandboxManager(); |
56 ~BootstrapSandboxManager() override; | 57 ~BootstrapSandboxManager() override; |
57 | 58 |
58 void RegisterSandboxPolicies(); | 59 void RegisterSandboxPolicies(); |
59 void RegisterRendererPolicy(); | 60 void RegisterRendererPolicy(); |
60 | 61 |
61 void AddBaselinePolicy(sandbox::BootstrapSandboxPolicy* policy); | 62 void AddBaselinePolicy(sandbox::BootstrapSandboxPolicy* policy); |
62 | 63 |
63 scoped_ptr<sandbox::BootstrapSandbox> sandbox_; | 64 std::unique_ptr<sandbox::BootstrapSandbox> sandbox_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(BootstrapSandboxManager); | 66 DISALLOW_COPY_AND_ASSIGN(BootstrapSandboxManager); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace content | 69 } // namespace content |
69 | 70 |
70 #endif // CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ | 71 #endif // CONTENT_BROWSER_BOOTSTRAP_SANDBOX_MANAGER_MAC_H_ |
OLD | NEW |