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

Unified Diff: sandbox/win/src/broker_services.h

Issue 309593002: Cache sandbox tokens (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: token scoping Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sandbox/win/src/broker_services.cc » ('j') | sandbox/win/src/broker_services.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/broker_services.h
diff --git a/sandbox/win/src/broker_services.h b/sandbox/win/src/broker_services.h
index d2494437751ae04445116990036e60d61d8d35a0..e1eb7d0b71ec51bc80957b344c0d4fc5ab05beec 100644
--- a/sandbox/win/src/broker_services.h
+++ b/sandbox/win/src/broker_services.h
@@ -8,12 +8,14 @@
#include <list>
#include <map>
#include <set>
+#include <utility>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/win/scoped_handle.h"
#include "sandbox/win/src/crosscall_server.h"
#include "sandbox/win/src/job.h"
#include "sandbox/win/src/sandbox.h"
+#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.
#include "sandbox/win/src/sharedmem_ipc_server.h"
#include "sandbox/win/src/win2k_threadpool.h"
#include "sandbox/win/src/win_utils.h"
@@ -105,6 +107,9 @@ class BrokerServicesBase FINAL : public BrokerServices,
// job. Consult |jobless_process_handles_| for handles of pocess without job.
std::set<DWORD> child_process_ids_;
+ typedef std::map<uint32_t, std::pair<HANDLE, HANDLE>> TokenCacheMap;
+ TokenCacheMap token_cache_;
+
DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase);
};
« no previous file with comments | « no previous file | sandbox/win/src/broker_services.cc » ('j') | sandbox/win/src/broker_services.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698