| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 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 #include "sandbox/win/src/shared_handles.h" | 5 #include "sandbox/win/src/shared_handles.h" | 
| 6 | 6 | 
| 7 namespace sandbox { | 7 namespace sandbox { | 
| 8 | 8 | 
| 9 // Note once again the the assumption here is that the shared memory is | 9 // Note once again the the assumption here is that the shared memory is | 
| 10 // initialized with zeros in the process that calls SetHandle and that | 10 // initialized with zeros in the process that calls SetHandle and that | 
| 11 // the process that calls GetHandle 'sees' this memory. | 11 // the process that calls GetHandle 'sees' this memory. | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58 SharedHandles::SharedItem* SharedHandles::FindByTag(uint32 tag) { | 58 SharedHandles::SharedItem* SharedHandles::FindByTag(uint32 tag) { | 
| 59   for (size_t ix = 0; ix != shared_.max_items; ++ix) { | 59   for (size_t ix = 0; ix != shared_.max_items; ++ix) { | 
| 60     if (tag == shared_.items[ix].tag) { | 60     if (tag == shared_.items[ix].tag) { | 
| 61       return &shared_.items[ix]; | 61       return &shared_.items[ix]; | 
| 62     } | 62     } | 
| 63   } | 63   } | 
| 64   return NULL; | 64   return NULL; | 
| 65 } | 65 } | 
| 66 | 66 | 
| 67 }  // namespace sandbox | 67 }  // namespace sandbox | 
| OLD | NEW | 
|---|