OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/common/sandbox_mac.h" | 5 #include "content/common/sandbox_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #import <OpenGL/OpenGL.h> | 8 #import <OpenGL/OpenGL.h> |
9 | 9 |
10 extern "C" { | 10 extern "C" { |
11 #include <sandbox.h> | 11 #include <sandbox.h> |
12 } | 12 } |
13 #include <signal.h> | 13 #include <signal.h> |
14 #include <sys/param.h> | 14 #include <sys/param.h> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/mac/mac_util.h" | 19 #include "base/mac/mac_util.h" |
20 #include "base/rand_util_c.h" | 20 #include "base/rand_util_c.h" |
21 #include "base/mac/scoped_cftyperef.h" | 21 #include "base/mac/scoped_cftyperef.h" |
22 #include "base/mac/scoped_nsautorelease_pool.h" | 22 #include "base/mac/scoped_nsautorelease_pool.h" |
23 #include "base/string16.h" | 23 #include "base/string16.h" |
24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
| 25 #include "base/stringprintf.h" |
25 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
26 #include "base/sys_string_conversions.h" | 27 #include "base/sys_string_conversions.h" |
27 #include "base/utf_string_conversions.h" | 28 #include "base/utf_string_conversions.h" |
28 #include "content/common/chrome_application_mac.h" | 29 #include "content/common/chrome_application_mac.h" |
29 #include "content/common/content_switches.h" | 30 #include "content/common/content_switches.h" |
30 #include "unicode/uchar.h" | 31 #include "unicode/uchar.h" |
31 #include "ui/gfx/gl/gl_surface.h" | 32 #include "ui/gfx/gl/gl_surface.h" |
32 | 33 |
33 namespace { | 34 namespace { |
34 | 35 |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { | 569 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { |
569 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " | 570 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " |
570 << path->value(); | 571 << path->value(); |
571 return; | 572 return; |
572 } | 573 } |
573 | 574 |
574 *path = FilePath(canonical_path); | 575 *path = FilePath(canonical_path); |
575 } | 576 } |
576 | 577 |
577 } // namespace sandbox | 578 } // namespace sandbox |
OLD | NEW |