OLD | NEW |
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 #ifndef SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ | 5 #ifndef SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ |
6 #define SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ | 6 #define SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/pickle.h" | 14 #include "base/pickle.h" |
15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
16 #include "sandbox/linux/syscall_broker/broker_policy.h" | 16 #include "sandbox/linux/syscall_broker/broker_policy.h" |
17 #include "sandbox/sandbox_export.h" | 17 #include "sandbox/sandbox_export.h" |
18 | 18 |
19 namespace sandbox { | 19 namespace sandbox { |
20 | 20 |
21 namespace syscall_broker { | 21 namespace syscall_broker { |
22 | 22 |
23 class BrokerClient; | 23 class BrokerClient; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Close the IPC channel with the other party. This should only be used | 76 // Close the IPC channel with the other party. This should only be used |
77 // by tests an none of the class methods should be used afterwards. | 77 // by tests an none of the class methods should be used afterwards. |
78 void CloseChannel(); | 78 void CloseChannel(); |
79 | 79 |
80 bool initialized_; // Whether we've been through Init() yet. | 80 bool initialized_; // Whether we've been through Init() yet. |
81 const bool fast_check_in_client_; | 81 const bool fast_check_in_client_; |
82 const bool quiet_failures_for_tests_; | 82 const bool quiet_failures_for_tests_; |
83 pid_t broker_pid_; // The PID of the broker (child). | 83 pid_t broker_pid_; // The PID of the broker (child). |
84 syscall_broker::BrokerPolicy policy_; // The sandboxing policy. | 84 syscall_broker::BrokerPolicy policy_; // The sandboxing policy. |
85 scoped_ptr<syscall_broker::BrokerClient> broker_client_; | 85 std::unique_ptr<syscall_broker::BrokerClient> broker_client_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(BrokerProcess); | 87 DISALLOW_COPY_AND_ASSIGN(BrokerProcess); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace syscall_broker | 90 } // namespace syscall_broker |
91 | 91 |
92 } // namespace sandbox | 92 } // namespace sandbox |
93 | 93 |
94 #endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ | 94 #endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ |
OLD | NEW |