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" { |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/rand_util_c.h" | 21 #include "base/rand_util_c.h" |
22 #include "base/mac/scoped_cftyperef.h" | 22 #include "base/mac/scoped_cftyperef.h" |
23 #include "base/mac/scoped_nsautorelease_pool.h" | 23 #include "base/mac/scoped_nsautorelease_pool.h" |
24 #include "base/string16.h" | 24 #include "base/string16.h" |
25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
26 #include "base/stringprintf.h" | 26 #include "base/stringprintf.h" |
27 #include "base/sys_info.h" | 27 #include "base/sys_info.h" |
28 #include "base/sys_string_conversions.h" | 28 #include "base/sys_string_conversions.h" |
29 #include "base/utf_string_conversions.h" | 29 #include "base/utf_string_conversions.h" |
30 #include "content/common/chrome_application_mac.h" | 30 #include "content/common/chrome_application_mac.h" |
31 #include "content/common/content_switches.h" | 31 #include "content/public/common/content_switches.h" |
32 #include "unicode/uchar.h" | 32 #include "unicode/uchar.h" |
33 #include "ui/gfx/gl/gl_surface.h" | 33 #include "ui/gfx/gl/gl_surface.h" |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // Try to escape |c| as a "SingleEscapeCharacter" (\n, etc). If successful, | 37 // Try to escape |c| as a "SingleEscapeCharacter" (\n, etc). If successful, |
38 // returns true and appends the escape sequence to |dst|. | 38 // returns true and appends the escape sequence to |dst|. |
39 bool EscapeSingleChar(char c, std::string* dst) { | 39 bool EscapeSingleChar(char c, std::string* dst) { |
40 const char *append = NULL; | 40 const char *append = NULL; |
41 switch (c) { | 41 switch (c) { |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { | 581 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { |
582 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " | 582 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " |
583 << path->value(); | 583 << path->value(); |
584 return; | 584 return; |
585 } | 585 } |
586 | 586 |
587 *path = FilePath(canonical_path); | 587 *path = FilePath(canonical_path); |
588 } | 588 } |
589 | 589 |
590 } // namespace sandbox | 590 } // namespace sandbox |
OLD | NEW |