OLD | NEW |
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 Loading... |
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 |
145 #if defined(OS_POSIX) && !defined(OS_IOS) | 155 #if defined(OS_POSIX) && !defined(OS_IOS) |
146 | 156 |
147 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. | 157 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. |
148 void SetupSignalHandlers() { | 158 void SetupSignalHandlers() { |
149 // Sanitise our signal handling state. Signals that were ignored by our | 159 // Sanitise our signal handling state. Signals that were ignored by our |
150 // parent will also be ignored by us. We also inherit our parent's sigmask. | 160 // parent will also be ignored by us. We also inherit our parent's sigmask. |
151 sigset_t empty_signal_set; | 161 sigset_t empty_signal_set; |
152 CHECK_EQ(0, sigemptyset(&empty_signal_set)); | 162 CHECK_EQ(0, sigemptyset(&empty_signal_set)); |
153 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &empty_signal_set, NULL)); | 163 CHECK_EQ(0, sigprocmask(SIG_SETMASK, &empty_signal_set, NULL)); |
154 | 164 |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 | 811 |
802 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 812 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
803 }; | 813 }; |
804 | 814 |
805 // static | 815 // static |
806 ContentMainRunner* ContentMainRunner::Create() { | 816 ContentMainRunner* ContentMainRunner::Create() { |
807 return new ContentMainRunnerImpl(); | 817 return new ContentMainRunnerImpl(); |
808 } | 818 } |
809 | 819 |
810 } // namespace content | 820 } // namespace content |
OLD | NEW |