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 | 10 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 base::LazyInstance<ContentGpuClient> | 171 base::LazyInstance<ContentGpuClient> |
172 g_empty_content_gpu_client = LAZY_INSTANCE_INITIALIZER; | 172 g_empty_content_gpu_client = LAZY_INSTANCE_INITIALIZER; |
173 base::LazyInstance<ContentRendererClient> | 173 base::LazyInstance<ContentRendererClient> |
174 g_empty_content_renderer_client = LAZY_INSTANCE_INITIALIZER; | 174 g_empty_content_renderer_client = LAZY_INSTANCE_INITIALIZER; |
175 base::LazyInstance<ContentUtilityClient> | 175 base::LazyInstance<ContentUtilityClient> |
176 g_empty_content_utility_client = LAZY_INSTANCE_INITIALIZER; | 176 g_empty_content_utility_client = LAZY_INSTANCE_INITIALIZER; |
177 #endif // !CHROME_MULTIPLE_DLL_BROWSER | 177 #endif // !CHROME_MULTIPLE_DLL_BROWSER |
178 | 178 |
179 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) && defined(OS_ANDROID) | 179 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) && defined(OS_ANDROID) |
180 #if defined __LP64__ | 180 #if defined __LP64__ |
181 #define kV8NativesDataDescriptor kV8NativesDataDescriptor64 | |
182 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor64 | 181 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor64 |
183 #else | 182 #else |
184 #define kV8NativesDataDescriptor kV8NativesDataDescriptor32 | |
185 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor32 | 183 #define kV8SnapshotDataDescriptor kV8SnapshotDataDescriptor32 |
186 #endif | 184 #endif |
187 #endif | 185 #endif |
188 | 186 |
189 #if defined(OS_POSIX) | 187 #if defined(OS_POSIX) |
190 | 188 |
191 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. | 189 // Setup signal-handling state: resanitize most signals, ignore SIGPIPE. |
192 void SetupSignalHandlers() { | 190 void SetupSignalHandlers() { |
193 // Sanitise our signal handling state. Signals that were ignored by our | 191 // Sanitise our signal handling state. Signals that were ignored by our |
194 // parent will also be ignored by us. We also inherit our parent's sigmask. | 192 // parent will also be ignored by us. We also inherit our parent's sigmask. |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 | 841 |
844 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 842 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
845 }; | 843 }; |
846 | 844 |
847 // static | 845 // static |
848 ContentMainRunner* ContentMainRunner::Create() { | 846 ContentMainRunner* ContentMainRunner::Create() { |
849 return new ContentMainRunnerImpl(); | 847 return new ContentMainRunnerImpl(); |
850 } | 848 } |
851 | 849 |
852 } // namespace content | 850 } // namespace content |
OLD | NEW |