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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 static const char* const kSwitchNames[] = { | 197 static const char* const kSwitchNames[] = { |
198 switches::kDisableApplicationCache, | 198 switches::kDisableApplicationCache, |
199 switches::kDisableDatabases, | 199 switches::kDisableDatabases, |
200 #if defined(OS_WIN) | 200 #if defined(OS_WIN) |
201 switches::kDisableDesktopNotifications, | 201 switches::kDisableDesktopNotifications, |
202 #endif | 202 #endif |
203 switches::kDisableFileSystem, | 203 switches::kDisableFileSystem, |
204 switches::kDisableSeccompFilterSandbox, | 204 switches::kDisableSeccompFilterSandbox, |
205 switches::kEnableExperimentalWebPlatformFeatures, | 205 switches::kEnableExperimentalWebPlatformFeatures, |
| 206 switches::kEnableMemoryInfo, |
206 switches::kEnableServiceWorker, | 207 switches::kEnableServiceWorker, |
207 #if defined(OS_MACOSX) | 208 #if defined(OS_MACOSX) |
208 switches::kEnableSandboxLogging, | 209 switches::kEnableSandboxLogging, |
209 #endif | 210 #endif |
210 switches::kJavaScriptFlags, | 211 switches::kJavaScriptFlags, |
211 switches::kNoSandbox | 212 switches::kNoSandbox |
212 }; | 213 }; |
213 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, | 214 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, |
214 arraysize(kSwitchNames)); | 215 arraysize(kSwitchNames)); |
215 | 216 |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 return false; | 826 return false; |
826 } | 827 } |
827 | 828 |
828 WorkerProcessHost::WorkerInstance::FilterInfo | 829 WorkerProcessHost::WorkerInstance::FilterInfo |
829 WorkerProcessHost::WorkerInstance::GetFilter() const { | 830 WorkerProcessHost::WorkerInstance::GetFilter() const { |
830 DCHECK(NumFilters() == 1); | 831 DCHECK(NumFilters() == 1); |
831 return *filters_.begin(); | 832 return *filters_.begin(); |
832 } | 833 } |
833 | 834 |
834 } // namespace content | 835 } // namespace content |
OLD | NEW |