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 return false; | 145 return false; |
146 | 146 |
147 CommandLine* cmd_line = new CommandLine(exe_path); | 147 CommandLine* cmd_line = new CommandLine(exe_path); |
148 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kWorkerProcess); | 148 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kWorkerProcess); |
149 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); | 149 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
150 std::string locale = | 150 std::string locale = |
151 content::GetContentClient()->browser()->GetApplicationLocale(); | 151 content::GetContentClient()->browser()->GetApplicationLocale(); |
152 cmd_line->AppendSwitchASCII(switches::kLang, locale); | 152 cmd_line->AppendSwitchASCII(switches::kLang, locale); |
153 | 153 |
154 static const char* const kSwitchNames[] = { | 154 static const char* const kSwitchNames[] = { |
155 switches::kWebWorkerShareProcesses, | |
156 switches::kDisableApplicationCache, | 155 switches::kDisableApplicationCache, |
157 switches::kDisableDatabases, | 156 switches::kDisableDatabases, |
158 switches::kEnableLogging, | 157 switches::kEnableLogging, |
159 switches::kLoggingLevel, | 158 switches::kLoggingLevel, |
160 switches::kDisableWebSockets, | 159 switches::kDisableWebSockets, |
161 #if defined(OS_WIN) | 160 #if defined(OS_WIN) |
162 switches::kDisableDesktopNotifications, | 161 switches::kDisableDesktopNotifications, |
163 #endif | 162 #endif |
164 switches::kDisableFileSystem, | 163 switches::kDisableFileSystem, |
165 switches::kDisableSeccompFilterSandbox, | 164 switches::kDisableSeccompFilterSandbox, |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 } | 700 } |
702 } | 701 } |
703 return false; | 702 return false; |
704 } | 703 } |
705 | 704 |
706 WorkerProcessHost::WorkerInstance::FilterInfo | 705 WorkerProcessHost::WorkerInstance::FilterInfo |
707 WorkerProcessHost::WorkerInstance::GetFilter() const { | 706 WorkerProcessHost::WorkerInstance::GetFilter() const { |
708 DCHECK(NumFilters() == 1); | 707 DCHECK(NumFilters() == 1); |
709 return *filters_.begin(); | 708 return *filters_.begin(); |
710 } | 709 } |
OLD | NEW |