| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 8 |
| 9 extern "C" { | 9 extern "C" { |
| 10 #include <sandbox.h> | 10 #include <sandbox.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "base/strings/string16.h" | 25 #include "base/strings/string16.h" |
| 26 #include "base/strings/string_piece.h" | 26 #include "base/strings/string_piece.h" |
| 27 #include "base/strings/string_util.h" | 27 #include "base/strings/string_util.h" |
| 28 #include "base/strings/stringprintf.h" | 28 #include "base/strings/stringprintf.h" |
| 29 #include "base/strings/sys_string_conversions.h" | 29 #include "base/strings/sys_string_conversions.h" |
| 30 #include "base/strings/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
| 31 #include "base/sys_info.h" | 31 #include "base/sys_info.h" |
| 32 #include "content/public/common/content_client.h" | 32 #include "content/public/common/content_client.h" |
| 33 #include "content/public/common/content_switches.h" | 33 #include "content/public/common/content_switches.h" |
| 34 #include "grit/content_resources.h" | 34 #include "grit/content_resources.h" |
| 35 #include "third_party/icu/public/common/unicode/uchar.h" | 35 #include "third_party/icu/source/common/unicode/uchar.h" |
| 36 #include "ui/base/layout.h" | 36 #include "ui/base/layout.h" |
| 37 #include "ui/gl/gl_surface.h" | 37 #include "ui/gl/gl_surface.h" |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 // Is the sandbox currently active. | 42 // Is the sandbox currently active. |
| 43 bool gSandboxIsActive = false; | 43 bool gSandboxIsActive = false; |
| 44 | 44 |
| 45 struct SandboxTypeToResourceIDMapping { | 45 struct SandboxTypeToResourceIDMapping { |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { | 601 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { |
| 602 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " | 602 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " |
| 603 << path.value(); | 603 << path.value(); |
| 604 return path; | 604 return path; |
| 605 } | 605 } |
| 606 | 606 |
| 607 return base::FilePath(canonical_path); | 607 return base::FilePath(canonical_path); |
| 608 } | 608 } |
| 609 | 609 |
| 610 } // namespace content | 610 } // namespace content |
| OLD | NEW |