Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: content/common/sandbox_mac.mm

Issue 6722026: Refactor: Move app/gfx/gl ==> ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try removing a dep. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | content/content_gpu.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "app/gfx/gl/gl_context.h"
17 #include "base/basictypes.h" 16 #include "base/basictypes.h"
18 #include "base/command_line.h" 17 #include "base/command_line.h"
19 #include "base/file_util.h" 18 #include "base/file_util.h"
20 #include "base/mac/mac_util.h" 19 #include "base/mac/mac_util.h"
21 #include "base/rand_util_c.h" 20 #include "base/rand_util_c.h"
22 #include "base/mac/scoped_cftyperef.h" 21 #include "base/mac/scoped_cftyperef.h"
23 #include "base/mac/scoped_nsautorelease_pool.h" 22 #include "base/mac/scoped_nsautorelease_pool.h"
24 #include "base/string16.h" 23 #include "base/string16.h"
25 #include "base/string_util.h" 24 #include "base/string_util.h"
26 #include "base/sys_info.h" 25 #include "base/sys_info.h"
27 #include "base/sys_string_conversions.h" 26 #include "base/sys_string_conversions.h"
28 #include "base/utf_string_conversions.h" 27 #include "base/utf_string_conversions.h"
29 #include "content/common/chrome_application_mac.h" 28 #include "content/common/chrome_application_mac.h"
30 #include "content/common/content_switches.h" 29 #include "content/common/content_switches.h"
31 #include "unicode/uchar.h" 30 #include "unicode/uchar.h"
31 #include "ui/gfx/gl/gl_context.h"
32 32
33 namespace { 33 namespace {
34 34
35 // Try to escape |c| as a "SingleEscapeCharacter" (\n, etc). If successful, 35 // Try to escape |c| as a "SingleEscapeCharacter" (\n, etc). If successful,
36 // returns true and appends the escape sequence to |dst|. 36 // returns true and appends the escape sequence to |dst|.
37 bool EscapeSingleChar(char c, std::string* dst) { 37 bool EscapeSingleChar(char c, std::string* dst) {
38 const char *append = NULL; 38 const char *append = NULL;
39 switch (c) { 39 switch (c) {
40 case '\b': 40 case '\b':
41 append = "\\b"; 41 append = "\\b";
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { 570 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) {
571 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " 571 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: "
572 << path->value(); 572 << path->value();
573 return; 573 return;
574 } 574 }
575 575
576 *path = FilePath(canonical_path); 576 *path = FilePath(canonical_path);
577 } 577 }
578 578
579 } // namespace sandbox 579 } // namespace sandbox
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test.cc ('k') | content/content_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698