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

Side by Side Diff: chrome/browser/zygote_main_linux.cc

Issue 3120021: FBTF: Header cleanup in chrome/common part 2. The majority of the changed files (Closed)
Patch Set: Win fix 2. Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <dlfcn.h> 5 #include <dlfcn.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <sys/prctl.h> 8 #include <sys/prctl.h>
9 #include <sys/signal.h> 9 #include <sys/signal.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
11 #include <sys/stat.h> 11 #include <sys/stat.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <sys/wait.h> 13 #include <sys/wait.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #if defined(CHROMIUM_SELINUX) 16 #if defined(CHROMIUM_SELINUX)
17 #include <selinux/selinux.h> 17 #include <selinux/selinux.h>
18 #include <selinux/context.h> 18 #include <selinux/context.h>
19 #endif 19 #endif
20 20
21 #include "base/basictypes.h" 21 #include "base/basictypes.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/eintr_wrapper.h" 23 #include "base/eintr_wrapper.h"
24 #include "base/file_path.h" 24 #include "base/file_path.h"
25 #include "base/global_descriptors_posix.h" 25 #include "base/global_descriptors_posix.h"
26 #include "base/hash_tables.h" 26 #include "base/hash_tables.h"
27 #include "base/linux_util.h" 27 #include "base/linux_util.h"
28 #include "base/path_service.h" 28 #include "base/path_service.h"
29 #include "base/pickle.h" 29 #include "base/pickle.h"
30 #include "base/process_util.h"
30 #include "base/rand_util.h" 31 #include "base/rand_util.h"
31 #include "base/scoped_ptr.h" 32 #include "base/scoped_ptr.h"
32 #include "base/sys_info.h" 33 #include "base/sys_info.h"
33 #include "base/unix_domain_socket_posix.h" 34 #include "base/unix_domain_socket_posix.h"
34 #include "build/build_config.h" 35 #include "build/build_config.h"
35 36
36 #include "chrome/browser/zygote_host_linux.h" 37 #include "chrome/browser/zygote_host_linux.h"
37 #include "chrome/common/chrome_descriptors.h" 38 #include "chrome/common/chrome_descriptors.h"
38 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
39 #include "chrome/common/main_function_params.h" 40 #include "chrome/common/main_function_params.h"
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 LOG(INFO) << "Enabling experimental Seccomp sandbox."; 690 LOG(INFO) << "Enabling experimental Seccomp sandbox.";
690 sandbox_flags |= ZygoteHost::kSandboxSeccomp; 691 sandbox_flags |= ZygoteHost::kSandboxSeccomp;
691 } 692 }
692 } 693 }
693 #endif // SECCOMP_SANDBOX 694 #endif // SECCOMP_SANDBOX
694 695
695 Zygote zygote(sandbox_flags); 696 Zygote zygote(sandbox_flags);
696 // This function call can return multiple times, once per fork(). 697 // This function call can return multiple times, once per fork().
697 return zygote.ProcessRequests(); 698 return zygote.ProcessRequests();
698 } 699 }
OLDNEW
« no previous file with comments | « chrome/browser/worker_host/message_port_dispatcher.h ('k') | chrome/common/chrome_plugin_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698