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

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

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/public/common/content_restriction.h ('k') | content/renderer/renderer_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_MAIN_FUNCTION_PARAMS_H_ 9 #ifndef CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
10 #define CONTENT_COMMON_MAIN_FUNCTION_PARAMS_H_ 10 #define CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
11 #pragma once 11 #pragma once
12 12
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 namespace sandbox { 16 namespace sandbox {
17 struct SandboxInterfaceInfo; 17 struct SandboxInterfaceInfo;
18 } 18 }
19 #elif defined(OS_MACOSX) 19 #elif defined(OS_MACOSX)
20 namespace base { 20 namespace base {
21 namespace mac { 21 namespace mac {
22 class ScopedNSAutoreleasePool; 22 class ScopedNSAutoreleasePool;
23 } 23 }
24 } 24 }
25 #endif 25 #endif
26 26
27 class Task; 27 class Task;
28 28
29 namespace content {
30
29 struct MainFunctionParams { 31 struct MainFunctionParams {
30 explicit MainFunctionParams(const CommandLine& cl) 32 explicit MainFunctionParams(const CommandLine& cl)
31 : command_line(cl), 33 : command_line(cl),
32 #if defined(OS_WIN) 34 #if defined(OS_WIN)
33 sandbox_info(NULL), 35 sandbox_info(NULL),
34 #elif defined(OS_MACOSX) 36 #elif defined(OS_MACOSX)
35 autorelease_pool(NULL), 37 autorelease_pool(NULL),
36 #endif 38 #endif
37 ui_task(NULL) {} 39 ui_task(NULL) {}
38 const CommandLine& command_line; 40 const CommandLine& command_line;
39 #if defined(OS_WIN) 41 #if defined(OS_WIN)
40 sandbox::SandboxInterfaceInfo* sandbox_info; 42 sandbox::SandboxInterfaceInfo* sandbox_info;
41 #elif defined(OS_MACOSX) 43 #elif defined(OS_MACOSX)
42 base::mac::ScopedNSAutoreleasePool* autorelease_pool; 44 base::mac::ScopedNSAutoreleasePool* autorelease_pool;
43 #endif 45 #endif
44 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this 46 // Used by InProcessBrowserTest. If non-null BrowserMain schedules this
45 // task to run on the MessageLoop and BrowserInit is not invoked. 47 // task to run on the MessageLoop and BrowserInit is not invoked.
46 Task* ui_task; 48 Task* ui_task;
47 }; 49 };
48 50
49 #endif // CONTENT_COMMON_MAIN_FUNCTION_PARAMS_H_ 51 } // namespace content
52
53 #endif // CONTENT_PUBLIC_COMMON_MAIN_FUNCTION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/public/common/content_restriction.h ('k') | content/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698