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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool is_child_; // Whether we're the child (broker process). | 90 bool is_child_; // Whether we're the child (broker process). |
91 bool fast_check_in_client_; // Whether to forward a request that we know | 91 bool fast_check_in_client_; // Whether to forward a request that we know |
92 // will be denied to the broker. | 92 // will be denied to the broker. |
93 bool quiet_failures_for_tests_; // Disable certain error message when | 93 bool quiet_failures_for_tests_; // Disable certain error message when |
94 // testing for failures. | 94 // testing for failures. |
95 pid_t broker_pid_; // The PID of the broker (child). | 95 pid_t broker_pid_; // The PID of the broker (child). |
96 const std::vector<std::string> allowed_r_files_; // Files allowed for read. | 96 const std::vector<std::string> allowed_r_files_; // Files allowed for read. |
97 const std::vector<std::string> allowed_w_files_; // Files allowed for write. | 97 const std::vector<std::string> allowed_w_files_; // Files allowed for write. |
98 int ipc_socketpair_; // Our communication channel to parent or child. | 98 int ipc_socketpair_; // Our communication channel to parent or child. |
99 DISALLOW_IMPLICIT_CONSTRUCTORS(BrokerProcess); | 99 DISALLOW_IMPLICIT_CONSTRUCTORS(BrokerProcess); |
| 100 |
| 101 friend class BrokerProcessTestHelper; |
100 }; | 102 }; |
101 | 103 |
102 } // namespace sandbox | 104 } // namespace sandbox |
103 | 105 |
104 #endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ | 106 #endif // SANDBOX_LINUX_SERVICES_BROKER_PROCESS_H_ |
OLD | NEW |