| OLD | NEW |
| 1 // Copyright (c) 2010 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_SRC_BROKER_SERVICES_H__ | 5 #ifndef SANDBOX_SRC_BROKER_SERVICES_H__ |
| 6 #define SANDBOX_SRC_BROKER_SERVICES_H__ | 6 #define SANDBOX_SRC_BROKER_SERVICES_H__ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "sandbox/src/crosscall_server.h" | 10 #include "sandbox/src/crosscall_server.h" |
| 11 #include "sandbox/src/job.h" | 11 #include "sandbox/src/job.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // the worker thread. | 67 // the worker thread. |
| 68 HANDLE job_port_; | 68 HANDLE job_port_; |
| 69 | 69 |
| 70 // Handle to a manual-reset event that is signaled when the total target | 70 // Handle to a manual-reset event that is signaled when the total target |
| 71 // process count reaches zero. | 71 // process count reaches zero. |
| 72 HANDLE no_targets_; | 72 HANDLE no_targets_; |
| 73 | 73 |
| 74 // Handle to the worker thread that reacts to job notifications. | 74 // Handle to the worker thread that reacts to job notifications. |
| 75 HANDLE job_thread_; | 75 HANDLE job_thread_; |
| 76 | 76 |
| 77 // Copy of our security descriptor containing deny ACEs to block children. |
| 78 PSECURITY_DESCRIPTOR security_descriptor_; |
| 79 |
| 77 // Lock used to protect the list of targets from being modified by 2 | 80 // Lock used to protect the list of targets from being modified by 2 |
| 78 // threads at the same time. | 81 // threads at the same time. |
| 79 CRITICAL_SECTION lock_; | 82 CRITICAL_SECTION lock_; |
| 80 | 83 |
| 81 // provides a pool of threads that are used to wait on the IPC calls. | 84 // provides a pool of threads that are used to wait on the IPC calls. |
| 82 ThreadProvider* thread_pool_; | 85 ThreadProvider* thread_pool_; |
| 83 | 86 |
| 84 // List of the trackers for closing and cleanup purposes. | 87 // List of the trackers for closing and cleanup purposes. |
| 85 typedef std::list<JobTracker*> JobTrackerList; | 88 typedef std::list<JobTracker*> JobTrackerList; |
| 86 JobTrackerList tracker_list_; | 89 JobTrackerList tracker_list_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 91 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace sandbox | 94 } // namespace sandbox |
| 92 | 95 |
| 93 | 96 |
| 94 #endif // SANDBOX_SRC_BROKER_SERVICES_H__ | 97 #endif // SANDBOX_SRC_BROKER_SERVICES_H__ |
| OLD | NEW |