| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 static const char* const kSwitchNames[] = { | 160 static const char* const kSwitchNames[] = { |
| 161 switches::kDisableApplicationCache, | 161 switches::kDisableApplicationCache, |
| 162 switches::kDisableDatabases, | 162 switches::kDisableDatabases, |
| 163 #if defined(OS_WIN) | 163 #if defined(OS_WIN) |
| 164 switches::kDisableDesktopNotifications, | 164 switches::kDisableDesktopNotifications, |
| 165 #endif | 165 #endif |
| 166 switches::kDisableFileSystem, | 166 switches::kDisableFileSystem, |
| 167 switches::kDisableSeccompFilterSandbox, | 167 switches::kDisableSeccompFilterSandbox, |
| 168 switches::kDisableWebSockets, | 168 switches::kDisableWebSockets, |
| 169 switches::kEnableLogging, | |
| 170 #if defined(OS_MACOSX) | 169 #if defined(OS_MACOSX) |
| 171 switches::kEnableSandboxLogging, | 170 switches::kEnableSandboxLogging, |
| 172 #endif | 171 #endif |
| 173 switches::kLoggingLevel, | |
| 174 }; | 172 }; |
| 175 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 173 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
| 176 arraysize(kSwitchNames)); | 174 arraysize(kSwitchNames)); |
| 177 | 175 |
| 178 #if defined(OS_POSIX) | 176 #if defined(OS_POSIX) |
| 179 bool use_zygote = true; | 177 bool use_zygote = true; |
| 180 | 178 |
| 181 if (CommandLine::ForCurrentProcess()->HasSwitch( | 179 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 182 switches::kWaitForDebuggerChildren)) { | 180 switches::kWaitForDebuggerChildren)) { |
| 183 // Look to pass-on the kWaitForDebugger flag. | 181 // Look to pass-on the kWaitForDebugger flag. |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 } | 717 } |
| 720 } | 718 } |
| 721 return false; | 719 return false; |
| 722 } | 720 } |
| 723 | 721 |
| 724 WorkerProcessHost::WorkerInstance::FilterInfo | 722 WorkerProcessHost::WorkerInstance::FilterInfo |
| 725 WorkerProcessHost::WorkerInstance::GetFilter() const { | 723 WorkerProcessHost::WorkerInstance::GetFilter() const { |
| 726 DCHECK(NumFilters() == 1); | 724 DCHECK(NumFilters() == 1); |
| 727 return *filters_.begin(); | 725 return *filters_.begin(); |
| 728 } | 726 } |
| OLD | NEW |