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

Side by Side Diff: content/common/sandbox_linux.cc

Issue 18154002: Use a direct include of time headers in content/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « content/common/media/media_player_messages_android.h ('k') | content/gpu/gpu_child_thread.h » ('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 <fcntl.h> 5 #include <fcntl.h>
6 #include <sys/resource.h> 6 #include <sys/resource.h>
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/time.h> 8 #include <sys/time.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 10
11 #include <limits> 11 #include <limits>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
18 #include "base/posix/eintr_wrapper.h" 18 #include "base/posix/eintr_wrapper.h"
19 #include "base/time.h" 19 #include "base/time/time.h"
20 #include "content/common/sandbox_linux.h" 20 #include "content/common/sandbox_linux.h"
21 #include "content/common/sandbox_seccomp_bpf_linux.h" 21 #include "content/common/sandbox_seccomp_bpf_linux.h"
22 #include "content/public/common/content_switches.h" 22 #include "content/public/common/content_switches.h"
23 #include "content/public/common/sandbox_linux.h" 23 #include "content/public/common/sandbox_linux.h"
24 #include "sandbox/linux/suid/client/setuid_sandbox_client.h" 24 #include "sandbox/linux/suid/client/setuid_sandbox_client.h"
25 25
26 namespace { 26 namespace {
27 27
28 void LogSandboxStarted(const std::string& sandbox_name) { 28 void LogSandboxStarted(const std::string& sandbox_name) {
29 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 29 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void LinuxSandbox::SealSandbox() { 264 void LinuxSandbox::SealSandbox() {
265 if (proc_fd_ >= 0) { 265 if (proc_fd_ >= 0) {
266 int ret = HANDLE_EINTR(close(proc_fd_)); 266 int ret = HANDLE_EINTR(close(proc_fd_));
267 CHECK_EQ(0, ret); 267 CHECK_EQ(0, ret);
268 proc_fd_ = -1; 268 proc_fd_ = -1;
269 } 269 }
270 } 270 }
271 271
272 } // namespace content 272 } // namespace content
273 273
OLDNEW
« no previous file with comments | « content/common/media/media_player_messages_android.h ('k') | content/gpu/gpu_child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698