| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |