| 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/browser/worker_host/worker_process_host.h" | 5 #include "content/browser/worker_host/worker_process_host.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 static const char* const kSwitchNames[] = { | 198 static const char* const kSwitchNames[] = { |
| 199 switches::kDisableApplicationCache, | 199 switches::kDisableApplicationCache, |
| 200 switches::kDisableDatabases, | 200 switches::kDisableDatabases, |
| 201 #if defined(OS_WIN) | 201 #if defined(OS_WIN) |
| 202 switches::kDisableDesktopNotifications, | 202 switches::kDisableDesktopNotifications, |
| 203 #endif | 203 #endif |
| 204 switches::kDisableFileSystem, | 204 switches::kDisableFileSystem, |
| 205 switches::kDisableSeccompFilterSandbox, | 205 switches::kDisableSeccompFilterSandbox, |
| 206 switches::kEnableExperimentalWebPlatformFeatures, | 206 switches::kEnableExperimentalWebPlatformFeatures, |
| 207 switches::kEnablePreciseMemoryInfo, | 207 switches::kEnablePreciseMemoryInfo, |
| 208 switches::kEnableServiceWorker, | |
| 209 #if defined(OS_MACOSX) | 208 #if defined(OS_MACOSX) |
| 210 switches::kEnableSandboxLogging, | 209 switches::kEnableSandboxLogging, |
| 211 #endif | 210 #endif |
| 212 switches::kJavaScriptFlags, | 211 switches::kJavaScriptFlags, |
| 213 switches::kNoSandbox | 212 switches::kNoSandbox |
| 214 }; | 213 }; |
| 215 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 214 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
| 216 arraysize(kSwitchNames)); | 215 arraysize(kSwitchNames)); |
| 217 | 216 |
| 218 bool debugging_child = false; | 217 bool debugging_child = false; |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 return false; | 820 return false; |
| 822 } | 821 } |
| 823 | 822 |
| 824 WorkerProcessHost::WorkerInstance::FilterInfo | 823 WorkerProcessHost::WorkerInstance::FilterInfo |
| 825 WorkerProcessHost::WorkerInstance::GetFilter() const { | 824 WorkerProcessHost::WorkerInstance::GetFilter() const { |
| 826 DCHECK(NumFilters() == 1); | 825 DCHECK(NumFilters() == 1); |
| 827 return *filters_.begin(); | 826 return *filters_.begin(); |
| 828 } | 827 } |
| 829 | 828 |
| 830 } // namespace content | 829 } // namespace content |
| OLD | NEW |