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

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

Issue 10826093: Create a LinuxSandbox class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only include the sandbox_bpf.h header on supported architectures. Created 8 years, 4 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 | « no previous file | content/common/OWNERS » ('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) 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 <unistd.h> 10 #include <unistd.h>
(...skipping 10 matching lines...) Expand all
21 #include "base/linux_util.h" 21 #include "base/linux_util.h"
22 #include "base/memory/scoped_ptr.h" 22 #include "base/memory/scoped_ptr.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/unix_domain_socket.h" 25 #include "base/posix/unix_domain_socket.h"
26 #include "base/process_util.h" 26 #include "base/process_util.h"
27 #include "base/shared_memory.h" 27 #include "base/shared_memory.h"
28 #include "base/string_number_conversions.h" 28 #include "base/string_number_conversions.h"
29 #include "base/string_util.h" 29 #include "base/string_util.h"
30 #include "content/common/font_config_ipc_linux.h" 30 #include "content/common/font_config_ipc_linux.h"
31 #include "content/common/sandbox_methods_linux.h" 31 #include "content/common/sandbox_linux.h"
32 #include "content/common/webkitplatformsupport_impl.h" 32 #include "content/common/webkitplatformsupport_impl.h"
33 #include "skia/ext/SkFontHost_fontconfig_direct.h" 33 #include "skia/ext/SkFontHost_fontconfig_direct.h"
34 #include "third_party/npapi/bindings/npapi_extensions.h" 34 #include "third_party/npapi/bindings/npapi_extensions.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontInfo.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontInfo.h"
37 #include "ui/gfx/font_render_params_linux.h" 37 #include "ui/gfx/font_render_params_linux.h"
38 38
39 using content::LinuxSandbox;
39 using WebKit::WebCString; 40 using WebKit::WebCString;
40 using WebKit::WebFontInfo; 41 using WebKit::WebFontInfo;
41 using WebKit::WebUChar; 42 using WebKit::WebUChar;
42 43
43 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC 44 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
44 45
45 // BEWARE: code in this file run across *processes* (not just threads). 46 // BEWARE: code in this file run across *processes* (not just threads).
46 47
47 // This code runs in a child process 48 // This code runs in a child process
48 class SandboxIPCProcess { 49 class SandboxIPCProcess {
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } 740 }
740 741
741 RenderSandboxHostLinux::~RenderSandboxHostLinux() { 742 RenderSandboxHostLinux::~RenderSandboxHostLinux() {
742 if (initialized_) { 743 if (initialized_) {
743 if (HANDLE_EINTR(close(renderer_socket_)) < 0) 744 if (HANDLE_EINTR(close(renderer_socket_)) < 0)
744 PLOG(ERROR) << "close"; 745 PLOG(ERROR) << "close";
745 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0) 746 if (HANDLE_EINTR(close(childs_lifeline_fd_)) < 0)
746 PLOG(ERROR) << "close"; 747 PLOG(ERROR) << "close";
747 } 748 }
748 } 749 }
OLDNEW
« no previous file with comments | « no previous file | content/common/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698