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

Side by Side Diff: sandbox/linux/services/broker_process.h

Issue 229893002: Add unit test to check for broker FD leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure available_fds[0] is closed too Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sandbox/linux/services/broker_process_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/services/broker_process_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698