| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_sandbox_host_linux.h" | 5 #include "chrome/browser/renderer_host/render_sandbox_host_linux.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 #include <sys/uio.h> | 9 #include <sys/uio.h> |
| 10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 11 #include <sys/poll.h> | 11 #include <sys/poll.h> |
| 12 #include <time.h> | 12 #include <time.h> |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/eintr_wrapper.h" | 17 #include "base/eintr_wrapper.h" |
| 18 #include "base/linux_util.h" | 18 #include "base/linux_util.h" |
| 19 #include "base/pickle.h" | 19 #include "base/pickle.h" |
| 20 #include "base/process_util.h" | 20 #include "base/process_util.h" |
| 21 #include "base/scoped_ptr.h" | 21 #include "base/scoped_ptr.h" |
| 22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
| 23 #include "base/unix_domain_socket_posix.h" | 23 #include "base/unix_domain_socket_posix.h" |
| 24 #include "chrome/common/sandbox_methods_linux.h" | 24 #include "chrome/common/sandbox_methods_linux.h" |
| 25 #include "webkit/api/public/gtk/WebFontInfo.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebFontInfo.h" |
| 26 | 26 |
| 27 #include "SkFontHost_fontconfig_direct.h" | 27 #include "SkFontHost_fontconfig_direct.h" |
| 28 #include "SkFontHost_fontconfig_ipc.h" | 28 #include "SkFontHost_fontconfig_ipc.h" |
| 29 | 29 |
| 30 using WebKit::WebCString; | 30 using WebKit::WebCString; |
| 31 using WebKit::WebFontInfo; | 31 using WebKit::WebFontInfo; |
| 32 using WebKit::WebUChar; | 32 using WebKit::WebUChar; |
| 33 | 33 |
| 34 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC | 34 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC |
| 35 | 35 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 _exit(0); | 358 _exit(0); |
| 359 } | 359 } |
| 360 } | 360 } |
| 361 | 361 |
| 362 RenderSandboxHostLinux::~RenderSandboxHostLinux() { | 362 RenderSandboxHostLinux::~RenderSandboxHostLinux() { |
| 363 if (init_) { | 363 if (init_) { |
| 364 HANDLE_EINTR(close(renderer_socket_)); | 364 HANDLE_EINTR(close(renderer_socket_)); |
| 365 HANDLE_EINTR(close(childs_lifeline_fd_)); | 365 HANDLE_EINTR(close(childs_lifeline_fd_)); |
| 366 } | 366 } |
| 367 } | 367 } |
| OLD | NEW |