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

Side by Side Diff: content/browser/zygote_host/zygote_host_impl_linux.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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/zygote_host/zygote_host_impl_linux.h ('k') | no next file » | 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/zygote_host/zygote_host_impl_linux.h" 5 #include "content/browser/zygote_host/zygote_host_impl_linux.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/socket.h> 9 #include <sys/socket.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
11 #include <sys/types.h> 11 #include <sys/types.h>
12 #include <unistd.h> 12 #include <unistd.h>
13 13
14 #include "base/base_switches.h" 14 #include "base/base_switches.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/environment.h" 16 #include "base/environment.h"
17 #include "base/files/file_enumerator.h" 17 #include "base/files/file_enumerator.h"
18 #include "base/files/file_util.h" 18 #include "base/files/file_util.h"
19 #include "base/files/scoped_file.h" 19 #include "base/files/scoped_file.h"
20 #include "base/linux_util.h" 20 #include "base/linux_util.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/macros.h"
22 #include "base/memory/linked_ptr.h" 23 #include "base/memory/linked_ptr.h"
23 #include "base/memory/scoped_ptr.h" 24 #include "base/memory/scoped_ptr.h"
24 #include "base/metrics/histogram.h" 25 #include "base/metrics/histogram.h"
25 #include "base/metrics/sparse_histogram.h" 26 #include "base/metrics/sparse_histogram.h"
26 #include "base/path_service.h" 27 #include "base/path_service.h"
27 #include "base/posix/eintr_wrapper.h" 28 #include "base/posix/eintr_wrapper.h"
28 #include "base/posix/unix_domain_socket_linux.h" 29 #include "base/posix/unix_domain_socket_linux.h"
29 #include "base/process/launch.h" 30 #include "base/process/launch.h"
30 #include "base/process/memory.h" 31 #include "base/process/memory.h"
31 #include "base/process/process_handle.h" 32 #include "base/process/process_handle.h"
32 #include "base/strings/string_number_conversions.h" 33 #include "base/strings/string_number_conversions.h"
33 #include "base/strings/string_util.h" 34 #include "base/strings/string_util.h"
34 #include "base/strings/utf_string_conversions.h" 35 #include "base/strings/utf_string_conversions.h"
35 #include "base/time/time.h" 36 #include "base/time/time.h"
37 #include "build/build_config.h"
36 #include "content/browser/renderer_host/render_sandbox_host_linux.h" 38 #include "content/browser/renderer_host/render_sandbox_host_linux.h"
37 #include "content/common/child_process_sandbox_support_impl_linux.h" 39 #include "content/common/child_process_sandbox_support_impl_linux.h"
38 #include "content/common/zygote_commands_linux.h" 40 #include "content/common/zygote_commands_linux.h"
39 #include "content/public/browser/content_browser_client.h" 41 #include "content/public/browser/content_browser_client.h"
40 #include "content/public/common/content_switches.h" 42 #include "content/public/common/content_switches.h"
41 #include "content/public/common/result_codes.h" 43 #include "content/public/common/result_codes.h"
42 #include "sandbox/linux/services/credentials.h" 44 #include "sandbox/linux/services/credentials.h"
43 #include "sandbox/linux/services/namespace_sandbox.h" 45 #include "sandbox/linux/services/namespace_sandbox.h"
44 #include "sandbox/linux/services/namespace_utils.h" 46 #include "sandbox/linux/services/namespace_utils.h"
45 #include "sandbox/linux/suid/client/setuid_sandbox_host.h" 47 #include "sandbox/linux/suid/client/setuid_sandbox_host.h"
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 } 597 }
596 598
597 if (!sandbox::Credentials::CanCreateProcessInNewUserNS()) { 599 if (!sandbox::Credentials::CanCreateProcessInNewUserNS()) {
598 return false; 600 return false;
599 } 601 }
600 602
601 return true; 603 return true;
602 } 604 }
603 605
604 } // namespace content 606 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698