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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
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::kEnableSharedWorkerMemoryInfo, |
207 switches::kEnableServiceWorker, | 208 switches::kEnableServiceWorker, |
208 #if defined(OS_MACOSX) | 209 #if defined(OS_MACOSX) |
209 switches::kEnableSandboxLogging, | 210 switches::kEnableSandboxLogging, |
210 #endif | 211 #endif |
211 switches::kJavaScriptFlags, | 212 switches::kJavaScriptFlags, |
212 switches::kNoSandbox | 213 switches::kNoSandbox |
213 }; | 214 }; |
214 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 215 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
215 arraysize(kSwitchNames)); | 216 arraysize(kSwitchNames)); |
216 | 217 |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 return false; | 837 return false; |
837 } | 838 } |
838 | 839 |
839 WorkerProcessHost::WorkerInstance::FilterInfo | 840 WorkerProcessHost::WorkerInstance::FilterInfo |
840 WorkerProcessHost::WorkerInstance::GetFilter() const { | 841 WorkerProcessHost::WorkerInstance::GetFilter() const { |
841 DCHECK(NumFilters() == 1); | 842 DCHECK(NumFilters() == 1); |
842 return *filters_.begin(); | 843 return *filters_.begin(); |
843 } | 844 } |
844 | 845 |
845 } // namespace content | 846 } // namespace content |
OLD | NEW |