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