OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/renderer_host/sandbox_ipc_linux.h" | 5 #include "content/browser/renderer_host/sandbox_ipc_linux.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <string.h> | 10 #include <string.h> |
11 #include <sys/poll.h> | 11 #include <sys/poll.h> |
12 #include <sys/socket.h> | 12 #include <sys/socket.h> |
13 #include <sys/stat.h> | 13 #include <sys/stat.h> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/files/scoped_file.h" | 16 #include "base/files/scoped_file.h" |
17 #include "base/linux_util.h" | 17 #include "base/linux_util.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/shared_memory.h" | 19 #include "base/memory/shared_memory.h" |
20 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
21 #include "base/posix/unix_domain_socket_linux.h" | 21 #include "base/posix/unix_domain_socket_linux.h" |
22 #include "base/process/launch.h" | 22 #include "base/process/launch.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "content/browser/renderer_host/font_utils_linux.h" | 24 #include "content/browser/renderer_host/font_utils_linux.h" |
25 #include "content/common/font_config_ipc_linux.h" | 25 #include "content/common/font_config_ipc_linux.h" |
26 #include "content/common/sandbox_linux/sandbox_linux.h" | 26 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 27 #include "content/common/set_process_title.h" |
27 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
28 #include "skia/ext/skia_utils_base.h" | 29 #include "skia/ext/skia_utils_base.h" |
29 #include "third_party/skia/include/ports/SkFontConfigInterface.h" | 30 #include "third_party/skia/include/ports/SkFontConfigInterface.h" |
30 #include "ui/gfx/font.h" | 31 #include "ui/gfx/font.h" |
31 #include "ui/gfx/font_fallback_linux.h" | 32 #include "ui/gfx/font_fallback_linux.h" |
32 #include "ui/gfx/font_render_params.h" | 33 #include "ui/gfx/font_render_params.h" |
33 | 34 |
34 namespace content { | 35 namespace content { |
35 | 36 |
36 namespace { | 37 namespace { |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 414 } |
414 | 415 |
415 SandboxIPCHandler::~SandboxIPCHandler() { | 416 SandboxIPCHandler::~SandboxIPCHandler() { |
416 if (IGNORE_EINTR(close(lifeline_fd_)) < 0) | 417 if (IGNORE_EINTR(close(lifeline_fd_)) < 0) |
417 PLOG(ERROR) << "close"; | 418 PLOG(ERROR) << "close"; |
418 if (IGNORE_EINTR(close(browser_socket_)) < 0) | 419 if (IGNORE_EINTR(close(browser_socket_)) < 0) |
419 PLOG(ERROR) << "close"; | 420 PLOG(ERROR) << "close"; |
420 } | 421 } |
421 | 422 |
422 } // namespace content | 423 } // namespace content |
OLD | NEW |