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/browser/renderer_host/render_sandbox_host_linux.h" | 5 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <fontconfig/fontconfig.h> | 8 #include <fontconfig/fontconfig.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <sys/poll.h> | 10 #include <sys/poll.h> |
11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
12 #include <sys/stat.h> | 12 #include <sys/stat.h> |
13 #include <sys/uio.h> | 13 #include <sys/uio.h> |
14 #include <time.h> | 14 #include <time.h> |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 | 16 |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/linux_util.h" | 20 #include "base/linux_util.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/memory/shared_memory.h" | 22 #include "base/memory/shared_memory.h" |
23 #include "base/memory/singleton.h" | 23 #include "base/memory/singleton.h" |
24 #include "base/pickle.h" | 24 #include "base/pickle.h" |
25 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
26 #include "base/posix/unix_domain_socket_linux.h" | 26 #include "base/posix/unix_domain_socket_linux.h" |
27 #include "base/process_util.h" | 27 #include "base/process/launch.h" |
28 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
29 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
30 #include "content/child/webkitplatformsupport_impl.h" | 30 #include "content/child/webkitplatformsupport_impl.h" |
31 #include "content/common/font_config_ipc_linux.h" | 31 #include "content/common/font_config_ipc_linux.h" |
32 #include "content/common/sandbox_linux.h" | 32 #include "content/common/sandbox_linux.h" |
33 #include "skia/ext/skia_utils_base.h" | 33 #include "skia/ext/skia_utils_base.h" |
34 #include "third_party/WebKit/public/web/WebKit.h" | 34 #include "third_party/WebKit/public/web/WebKit.h" |
35 #include "third_party/WebKit/public/web/linux/WebFontInfo.h" | 35 #include "third_party/WebKit/public/web/linux/WebFontInfo.h" |
36 #include "third_party/npapi/bindings/npapi_extensions.h" | 36 #include "third_party/npapi/bindings/npapi_extensions.h" |
37 #include "third_party/skia/include/ports/SkFontConfigInterface.h" | 37 #include "third_party/skia/include/ports/SkFontConfigInterface.h" |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 RenderSandboxHostLinux::~RenderSandboxHostLinux() { | 734 RenderSandboxHostLinux::~RenderSandboxHostLinux() { |
735 if (initialized_) { | 735 if (initialized_) { |
736 if (HANDLE_EINTR(close(renderer_socket_)) < 0) | 736 if (HANDLE_EINTR(close(renderer_socket_)) < 0) |
737 PLOG(ERROR) << "close"; | 737 PLOG(ERROR) << "close"; |
738 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0) | 738 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0) |
739 PLOG(ERROR) << "close"; | 739 PLOG(ERROR) << "close"; |
740 } | 740 } |
741 } | 741 } |
742 | 742 |
743 } // namespace content | 743 } // namespace content |
OLD | NEW |