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

Side by Side Diff: content/public/common/main_function_params.h

Issue 333823002: Apply renderer sandbox to utility processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment artifact Created 6 years, 6 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/content_common.gypi ('k') | content/utility/utility_main.cc » ('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 // Wrapper to the parameter list for the "main" entry points (browser, renderer, 5 // Wrapper to the parameter list for the "main" entry points (browser, renderer,
6 // plugin) to shield the call sites from the differences between platforms 6 // plugin) to shield the call sites from the differences between platforms
7 // (e.g., POSIX doesn't need to pass any sandbox information). 7 // (e.g., POSIX doesn't need to pass any sandbox information).
8 8
9 #ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ 9 #ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
10 #define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ 10 #define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
(...skipping 15 matching lines...) Expand all
26 26
27 namespace content { 27 namespace content {
28 28
29 struct MainFunctionParams { 29 struct MainFunctionParams {
30 explicit MainFunctionParams(const base::CommandLine& cl) 30 explicit MainFunctionParams(const base::CommandLine& cl)
31 : command_line(cl), 31 : command_line(cl),
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 sandbox_info(NULL), 33 sandbox_info(NULL),
34 #elif defined(OS_MACOSX) 34 #elif defined(OS_MACOSX)
35 autorelease_pool(NULL), 35 autorelease_pool(NULL),
36 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
37 zygote_child(false),
36 #endif 38 #endif
37 ui_task(NULL) { 39 ui_task(NULL) {
38 } 40 }
39 41
40 const base::CommandLine& command_line; 42 const base::CommandLine& command_line;
41 43
42 #if defined(OS_WIN) 44 #if defined(OS_WIN)
43 sandbox::SandboxInterfaceInfo* sandbox_info; 45 sandbox::SandboxInterfaceInfo* sandbox_info;
44 #elif defined(OS_MACOSX) 46 #elif defined(OS_MACOSX)
45 base::mac::ScopedNSAutoreleasePool* autorelease_pool; 47 base::mac::ScopedNSAutoreleasePool* autorelease_pool;
48 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
49 bool zygote_child;
46 #endif 50 #endif
47 51
48 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this 52 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this
49 // task to run on the MessageLoop and BrowserInit is not invoked. 53 // task to run on the MessageLoop and BrowserInit is not invoked.
50 base::Closure* ui_task; 54 base::Closure* ui_task;
51 }; 55 };
52 56
53 } // namespace content 57 } // namespace content
54 58
55 #endif // CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_ 59 #endif // CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/utility/utility_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698