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

Side by Side Diff: sandbox/win/src/handle_table.cc

Issue 10689170: Move the Windows sandbox to sandbox/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of tree (properly this time) Created 8 years, 5 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 | « sandbox/win/src/handle_table.h ('k') | sandbox/win/src/integrity_level_test.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "sandbox/src/handle_table.h" 5 #include "sandbox/win/src/handle_table.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdlib> 8 #include <cstdlib>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "sandbox/src/win_utils.h" 11 #include "sandbox/win/src/win_utils.h"
12 12
13 namespace { 13 namespace {
14 14
15 bool CompareHandleEntries(const SYSTEM_HANDLE_INFORMATION& a, 15 bool CompareHandleEntries(const SYSTEM_HANDLE_INFORMATION& a,
16 const SYSTEM_HANDLE_INFORMATION& b) { 16 const SYSTEM_HANDLE_INFORMATION& b) {
17 return a.ProcessId < b.ProcessId; 17 return a.ProcessId < b.ProcessId;
18 } 18 }
19 19
20 } // namespace 20 } // namespace
21 21
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 const SYSTEM_HANDLE_INFORMATION* start, 172 const SYSTEM_HANDLE_INFORMATION* start,
173 const SYSTEM_HANDLE_INFORMATION* end) 173 const SYSTEM_HANDLE_INFORMATION* end)
174 : table_(table), current_(start), end_(end) { 174 : table_(table), current_(start), end_(end) {
175 } 175 }
176 176
177 HandleTable::Iterator::Iterator(const Iterator& it) 177 HandleTable::Iterator::Iterator(const Iterator& it)
178 : table_(it.table_), current_(it.current_.handle_entry_), end_(it.end_) { 178 : table_(it.table_), current_(it.current_.handle_entry_), end_(it.end_) {
179 } 179 }
180 180
181 } // namespace sandbox 181 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/handle_table.h ('k') | sandbox/win/src/integrity_level_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698