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

Side by Side Diff: sandbox/win/src/broker_services.h

Issue 309593002: Cache sandbox tokens (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs Created 6 years, 6 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/win/src/broker_services.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_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"
17 #include "sandbox/win/src/sharedmem_ipc_server.h" 18 #include "sandbox/win/src/sharedmem_ipc_server.h"
18 #include "sandbox/win/src/win2k_threadpool.h" 19 #include "sandbox/win/src/win2k_threadpool.h"
19 #include "sandbox/win/src/win_utils.h" 20 #include "sandbox/win/src/win_utils.h"
20 21
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 99
99 // Maps peer process IDs to the saved handle and wait event. 100 // Maps peer process IDs to the saved handle and wait event.
100 // Prevents peer callbacks from accessing the broker after destruction. 101 // Prevents peer callbacks from accessing the broker after destruction.
101 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap; 102 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap;
102 PeerTrackerMap peer_map_; 103 PeerTrackerMap peer_map_;
103 104
104 // Provides a fast lookup to identify sandboxed processes that belong to a 105 // Provides a fast lookup to identify sandboxed processes that belong to a
105 // job. Consult |jobless_process_handles_| for handles of pocess without job. 106 // job. Consult |jobless_process_handles_| for handles of pocess without job.
106 std::set<DWORD> child_process_ids_; 107 std::set<DWORD> child_process_ids_;
107 108
109 typedef std::map<uint32_t, std::pair<HANDLE, HANDLE>> TokenCacheMap;
110 TokenCacheMap token_cache_;
111
108 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); 112 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase);
109 }; 113 };
110 114
111 } // namespace sandbox 115 } // namespace sandbox
112 116
113 117
114 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ 118 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_
OLDNEW
« no previous file with comments | « no previous file | sandbox/win/src/broker_services.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698