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

Side by Side Diff: content/browser/renderer_host/sandbox_ipc_linux.cc

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 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
« no previous file with comments | « content/browser/child_process_launcher_helper_posix.cc ('k') | content/common/BUILD.gn » ('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 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"
28 #include "content/public/common/content_switches.h" 27 #include "content/public/common/content_switches.h"
29 #include "skia/ext/skia_utils_base.h" 28 #include "skia/ext/skia_utils_base.h"
30 #include "third_party/skia/include/ports/SkFontConfigInterface.h" 29 #include "third_party/skia/include/ports/SkFontConfigInterface.h"
31 #include "ui/gfx/font.h" 30 #include "ui/gfx/font.h"
32 #include "ui/gfx/font_fallback_linux.h" 31 #include "ui/gfx/font_fallback_linux.h"
33 #include "ui/gfx/font_render_params.h" 32 #include "ui/gfx/font_render_params.h"
34 33
35 namespace content { 34 namespace content {
36 35
37 namespace { 36 namespace {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 413 }
415 414
416 SandboxIPCHandler::~SandboxIPCHandler() { 415 SandboxIPCHandler::~SandboxIPCHandler() {
417 if (IGNORE_EINTR(close(lifeline_fd_)) < 0) 416 if (IGNORE_EINTR(close(lifeline_fd_)) < 0)
418 PLOG(ERROR) << "close"; 417 PLOG(ERROR) << "close";
419 if (IGNORE_EINTR(close(browser_socket_)) < 0) 418 if (IGNORE_EINTR(close(browser_socket_)) < 0)
420 PLOG(ERROR) << "close"; 419 PLOG(ERROR) << "close";
421 } 420 }
422 421
423 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher_helper_posix.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698