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

Side by Side Diff: sandbox/win/src/shared_handles.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/shared_handles.h ('k') | sandbox/win/src/sharedmem_ipc_client.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/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.
12 12
13 SharedHandles::SharedHandles() { 13 SharedHandles::SharedHandles() {
14 shared_.items = NULL; 14 shared_.items = NULL;
15 shared_.max_items = 0; 15 shared_.max_items = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « sandbox/win/src/shared_handles.h ('k') | sandbox/win/src/sharedmem_ipc_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698