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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 cmd_line->AppendSwitchASCII(switches::kLang, locale); | 168 cmd_line->AppendSwitchASCII(switches::kLang, locale); |
169 | 169 |
170 static const char* const kSwitchNames[] = { | 170 static const char* const kSwitchNames[] = { |
171 switches::kDisableApplicationCache, | 171 switches::kDisableApplicationCache, |
172 switches::kDisableDatabases, | 172 switches::kDisableDatabases, |
173 #if defined(OS_WIN) | 173 #if defined(OS_WIN) |
174 switches::kDisableDesktopNotifications, | 174 switches::kDisableDesktopNotifications, |
175 #endif | 175 #endif |
176 switches::kDisableFileSystem, | 176 switches::kDisableFileSystem, |
177 switches::kDisableSeccompFilterSandbox, | 177 switches::kDisableSeccompFilterSandbox, |
178 switches::kEnableExperimentalWebKitFeatures, | 178 switches::kEnableExperimentalWebPlatformFeatures, |
179 #if defined(OS_MACOSX) | 179 #if defined(OS_MACOSX) |
180 switches::kEnableSandboxLogging, | 180 switches::kEnableSandboxLogging, |
181 #endif | 181 #endif |
182 }; | 182 }; |
183 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 183 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
184 arraysize(kSwitchNames)); | 184 arraysize(kSwitchNames)); |
185 | 185 |
186 #if defined(OS_POSIX) | 186 #if defined(OS_POSIX) |
187 bool use_zygote = true; | 187 bool use_zygote = true; |
188 | 188 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 return false; | 715 return false; |
716 } | 716 } |
717 | 717 |
718 WorkerProcessHost::WorkerInstance::FilterInfo | 718 WorkerProcessHost::WorkerInstance::FilterInfo |
719 WorkerProcessHost::WorkerInstance::GetFilter() const { | 719 WorkerProcessHost::WorkerInstance::GetFilter() const { |
720 DCHECK(NumFilters() == 1); | 720 DCHECK(NumFilters() == 1); |
721 return *filters_.begin(); | 721 return *filters_.begin(); |
722 } | 722 } |
723 | 723 |
724 } // namespace content | 724 } // namespace content |
OLD | NEW |