| 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 | |
| 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 Loading... |
| 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 |
| OLD | NEW |