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

Side by Side Diff: chrome_elf/thunk_getter.cc

Issue 1537333002: Switch to standard integer types in chrome_elf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 4 years, 12 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
« no previous file with comments | « chrome_elf/elf_imports_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 5 #include <stdint.h>
6 #include <windows.h> 6 #include <windows.h>
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "sandbox/win/src/interception_internal.h" 9 #include "sandbox/win/src/interception_internal.h"
10 #include "sandbox/win/src/internal_types.h" 10 #include "sandbox/win/src/internal_types.h"
11 #include "sandbox/win/src/sandbox_utils.h" 11 #include "sandbox/win/src/sandbox_utils.h"
12 #include "sandbox/win/src/service_resolver.h" 12 #include "sandbox/win/src/service_resolver.h"
13 13
14 namespace { 14 namespace {
15 enum Version { 15 enum Version {
16 VERSION_PRE_XP_SP2 = 0, // Not supported. 16 VERSION_PRE_XP_SP2 = 0, // Not supported.
17 VERSION_XP_SP2, 17 VERSION_XP_SP2,
18 VERSION_SERVER_2003, // Also includes XP Pro x64 and Server 2003 R2. 18 VERSION_SERVER_2003, // Also includes XP Pro x64 and Server 2003 R2.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 thunk = new sandbox::Wow64ResolverThunk(current_process, relaxed); 140 thunk = new sandbox::Wow64ResolverThunk(current_process, relaxed);
141 } else if (os_info.version() >= VERSION_WIN8) { 141 } else if (os_info.version() >= VERSION_WIN8) {
142 thunk = new sandbox::Win8ResolverThunk(current_process, relaxed); 142 thunk = new sandbox::Win8ResolverThunk(current_process, relaxed);
143 } else { 143 } else {
144 thunk = new sandbox::ServiceResolverThunk(current_process, relaxed); 144 thunk = new sandbox::ServiceResolverThunk(current_process, relaxed);
145 } 145 }
146 #endif 146 #endif
147 147
148 return thunk; 148 return thunk;
149 } 149 }
OLDNEW
« no previous file with comments | « chrome_elf/elf_imports_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698