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_WIN_SRC_BROKER_SERVICES_H_ | 5 #ifndef SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
6 #define SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 6 #define SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <utility> | |
11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/win/scoped_handle.h" | 14 #include "base/win/scoped_handle.h" |
14 #include "sandbox/win/src/crosscall_server.h" | 15 #include "sandbox/win/src/crosscall_server.h" |
15 #include "sandbox/win/src/job.h" | 16 #include "sandbox/win/src/job.h" |
16 #include "sandbox/win/src/sandbox.h" | 17 #include "sandbox/win/src/sandbox.h" |
18 #include "sandbox/win/src/security_level.h" | |
cpu_(ooo_6.6-7.5)
2014/06/04 00:29:27
remove this new header?
jschuh
2014/06/04 04:00:59
Done.
| |
17 #include "sandbox/win/src/sharedmem_ipc_server.h" | 19 #include "sandbox/win/src/sharedmem_ipc_server.h" |
18 #include "sandbox/win/src/win2k_threadpool.h" | 20 #include "sandbox/win/src/win2k_threadpool.h" |
19 #include "sandbox/win/src/win_utils.h" | 21 #include "sandbox/win/src/win_utils.h" |
20 | 22 |
21 namespace { | 23 namespace { |
22 | 24 |
23 struct JobTracker; | 25 struct JobTracker; |
24 struct PeerTracker; | 26 struct PeerTracker; |
25 | 27 |
26 } // namespace | 28 } // namespace |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 | 100 |
99 // Maps peer process IDs to the saved handle and wait event. | 101 // Maps peer process IDs to the saved handle and wait event. |
100 // Prevents peer callbacks from accessing the broker after destruction. | 102 // Prevents peer callbacks from accessing the broker after destruction. |
101 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap; | 103 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap; |
102 PeerTrackerMap peer_map_; | 104 PeerTrackerMap peer_map_; |
103 | 105 |
104 // Provides a fast lookup to identify sandboxed processes that belong to a | 106 // Provides a fast lookup to identify sandboxed processes that belong to a |
105 // job. Consult |jobless_process_handles_| for handles of pocess without job. | 107 // job. Consult |jobless_process_handles_| for handles of pocess without job. |
106 std::set<DWORD> child_process_ids_; | 108 std::set<DWORD> child_process_ids_; |
107 | 109 |
110 typedef std::map<uint32_t, std::pair<HANDLE, HANDLE>> TokenCacheMap; | |
111 TokenCacheMap token_cache_; | |
112 | |
108 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 113 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
109 }; | 114 }; |
110 | 115 |
111 } // namespace sandbox | 116 } // namespace sandbox |
112 | 117 |
113 | 118 |
114 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 119 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
OLD | NEW |