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 "sandbox/mac/os_compatibility.h" | 5 #include "sandbox/mac/os_compatibility.h" |
6 | 6 |
7 #include <servers/bootstrap.h> | 7 #include <servers/bootstrap.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 #include <unistd.h> | 10 #include <unistd.h> |
9 | 11 |
10 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
11 #include "sandbox/mac/xpc.h" | 13 #include "sandbox/mac/xpc.h" |
12 | 14 |
13 namespace sandbox { | 15 namespace sandbox { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
17 #pragma pack(push, 4) | 19 #pragma pack(push, 4) |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 return make_scoped_ptr(new OSCompatibility_10_6()); | 202 return make_scoped_ptr(new OSCompatibility_10_6()); |
201 else if (base::mac::IsOSLionOrLater() && base::mac::IsOSMavericksOrEarlier()) | 203 else if (base::mac::IsOSLionOrLater() && base::mac::IsOSMavericksOrEarlier()) |
202 return make_scoped_ptr(new OSCompatibility_10_7()); | 204 return make_scoped_ptr(new OSCompatibility_10_7()); |
203 else | 205 else |
204 return make_scoped_ptr(new OSCompatibility_10_10()); | 206 return make_scoped_ptr(new OSCompatibility_10_10()); |
205 } | 207 } |
206 | 208 |
207 OSCompatibility::~OSCompatibility() {} | 209 OSCompatibility::~OSCompatibility() {} |
208 | 210 |
209 } // namespace sandbox | 211 } // namespace sandbox |
OLD | NEW |