| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 static const char* const kSwitchNames[] = { | 146 static const char* const kSwitchNames[] = { |
| 147 switches::kDisableApplicationCache, | 147 switches::kDisableApplicationCache, |
| 148 switches::kDisableDatabases, | 148 switches::kDisableDatabases, |
| 149 #if defined(OS_WIN) | 149 #if defined(OS_WIN) |
| 150 switches::kDisableDesktopNotifications, | 150 switches::kDisableDesktopNotifications, |
| 151 #endif | 151 #endif |
| 152 switches::kDisableFileSystem, | 152 switches::kDisableFileSystem, |
| 153 switches::kDisableSeccompFilterSandbox, | 153 switches::kDisableSeccompFilterSandbox, |
| 154 switches::kEnableExperimentalWebPlatformFeatures, | 154 switches::kEnableExperimentalWebPlatformFeatures, |
| 155 switches::kEnableServiceWorker, |
| 155 #if defined(OS_MACOSX) | 156 #if defined(OS_MACOSX) |
| 156 switches::kEnableSandboxLogging, | 157 switches::kEnableSandboxLogging, |
| 157 #endif | 158 #endif |
| 158 }; | 159 }; |
| 159 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 160 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
| 160 arraysize(kSwitchNames)); | 161 arraysize(kSwitchNames)); |
| 161 | 162 |
| 162 #if defined(OS_POSIX) | 163 #if defined(OS_POSIX) |
| 163 bool use_zygote = true; | 164 bool use_zygote = true; |
| 164 | 165 |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 return false; | 681 return false; |
| 681 } | 682 } |
| 682 | 683 |
| 683 WorkerProcessHost::WorkerInstance::FilterInfo | 684 WorkerProcessHost::WorkerInstance::FilterInfo |
| 684 WorkerProcessHost::WorkerInstance::GetFilter() const { | 685 WorkerProcessHost::WorkerInstance::GetFilter() const { |
| 685 DCHECK(NumFilters() == 1); | 686 DCHECK(NumFilters() == 1); |
| 686 return *filters_.begin(); | 687 return *filters_.begin(); |
| 687 } | 688 } |
| 688 | 689 |
| 689 } // namespace content | 690 } // namespace content |
| OLD | NEW |