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

Side by Side Diff: content/app/content_main_runner.cc

Issue 1681003003: Revert of Pass both 32 and 64 bit snapshot and natives fds to child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « android_webview/lib/main/aw_main_delegate.cc ('k') | content/browser/child_process_launcher.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 #include "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <string> 10 #include <string>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 #if !defined(OS_IOS) && !defined(CHROME_MULTIPLE_DLL_BROWSER) 136 #if !defined(OS_IOS) && !defined(CHROME_MULTIPLE_DLL_BROWSER)
137 base::LazyInstance<ContentPluginClient> 137 base::LazyInstance<ContentPluginClient>
138 g_empty_content_plugin_client = LAZY_INSTANCE_INITIALIZER; 138 g_empty_content_plugin_client = LAZY_INSTANCE_INITIALIZER;
139 base::LazyInstance<ContentRendererClient> 139 base::LazyInstance<ContentRendererClient>
140 g_empty_content_renderer_client = LAZY_INSTANCE_INITIALIZER; 140 g_empty_content_renderer_client = LAZY_INSTANCE_INITIALIZER;
141 base::LazyInstance<ContentUtilityClient> 141 base::LazyInstance<ContentUtilityClient>
142 g_empty_content_utility_client = LAZY_INSTANCE_INITIALIZER; 142 g_empty_content_utility_client = LAZY_INSTANCE_INITIALIZER;
143 #endif // !OS_IOS && !CHROME_MULTIPLE_DLL_BROWSER 143 #endif // !OS_IOS && !CHROME_MULTIPLE_DLL_BROWSER
144 144
145 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) && defined(OS_ANDROID)
146 #if defined __LP64__
147 #define kV8NativesDataDescriptor kV8NativesDataDescriptor64
148 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor64
149 #else
150 #define kV8NativesDataDescriptor kV8NativesDataDescriptor32
151 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor32
152 #endif
153 #endif
154
155 #if defined(OS_POSIX) && !defined(OS_IOS) 145 #if defined(OS_POSIX) && !defined(OS_IOS)
156 146
157 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. 147 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE.
158 void SetupSignalHandlers() { 148 void SetupSignalHandlers() {
159 // Sanitise our signal handling state. Signals that were ignored by our 149 // Sanitise our signal handling state. Signals that were ignored by our
160 // parent will also be ignored by us. We also inherit our parent's sigmask. 150 // parent will also be ignored by us. We also inherit our parent's sigmask.
161 sigset_t empty_signal_set; 151 sigset_t empty_signal_set;
162 CHECK_EQ(0, sigemptyset(&empty_signal_set)); 152 CHECK_EQ(0, sigemptyset(&empty_signal_set));
163 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &empty_signal_set, NULL)); 153 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &empty_signal_set, NULL));
164 154
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 801
812 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 802 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
813 }; 803 };
814 804
815 // static 805 // static
816 ContentMainRunner* ContentMainRunner::Create() { 806 ContentMainRunner* ContentMainRunner::Create() {
817 return new ContentMainRunnerImpl(); 807 return new ContentMainRunnerImpl();
818 } 808 }
819 809
820 } // namespace content 810 } // namespace content
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698