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

Side by Side Diff: sandbox/win/src/interception.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/interception.h ('k') | sandbox/win/src/interception_agent.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) 2012 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 // For information about interceptions as a whole see 5 // For information about interceptions as a whole see
6 // http://dev.chromium.org/developers/design-documents/sandbox . 6 // http://dev.chromium.org/developers/design-documents/sandbox .
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "sandbox/src/interception.h" 10 #include "sandbox/win/src/interception.h"
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/win/pe_image.h" 14 #include "base/win/pe_image.h"
15 #include "base/win/windows_version.h" 15 #include "base/win/windows_version.h"
16 #include "sandbox/src/interception_internal.h" 16 #include "sandbox/win/src/interception_internal.h"
17 #include "sandbox/src/interceptors.h" 17 #include "sandbox/win/src/interceptors.h"
18 #include "sandbox/src/sandbox.h" 18 #include "sandbox/win/src/sandbox.h"
19 #include "sandbox/src/sandbox_utils.h" 19 #include "sandbox/win/src/sandbox_utils.h"
20 #include "sandbox/src/service_resolver.h" 20 #include "sandbox/win/src/service_resolver.h"
21 #include "sandbox/src/target_interceptions.h" 21 #include "sandbox/win/src/target_interceptions.h"
22 #include "sandbox/src/target_process.h" 22 #include "sandbox/win/src/target_process.h"
23 #include "sandbox/src/wow64.h" 23 #include "sandbox/win/src/wow64.h"
24 24
25 namespace { 25 namespace {
26 26
27 const char kMapViewOfSectionName[] = "NtMapViewOfSection"; 27 const char kMapViewOfSectionName[] = "NtMapViewOfSection";
28 const char kUnmapViewOfSectionName[] = "NtUnmapViewOfSection"; 28 const char kUnmapViewOfSectionName[] = "NtUnmapViewOfSection";
29 29
30 // Standard allocation granularity and page size for Windows. 30 // Standard allocation granularity and page size for Windows.
31 const size_t kAllocGranularity = 65536; 31 const size_t kAllocGranularity = 65536;
32 const size_t kPageSize = 4096; 32 const size_t kPageSize = 4096;
33 33
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 ::FreeLibrary(local_interceptor); 542 ::FreeLibrary(local_interceptor);
543 #endif 543 #endif
544 544
545 if (it != interceptions_.end()) 545 if (it != interceptions_.end())
546 return false; 546 return false;
547 547
548 return true; 548 return true;
549 } 549 }
550 550
551 } // namespace sandbox 551 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/interception.h ('k') | sandbox/win/src/interception_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698