Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 27238005: Add commandline flag for service workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
145 145
146 static const char* const kSwitchNames[] = { 146 static const char* const kSwitchNames[] = {
147 switches::kDisableApplicationCache, 147 switches::kDisableApplicationCache,
148 switches::kDisableDatabases, 148 switches::kDisableDatabases,
149 #if defined(OS_WIN) 149 #if defined(OS_WIN)
150 switches::kDisableDesktopNotifications, 150 switches::kDisableDesktopNotifications,
151 #endif 151 #endif
152 switches::kDisableFileSystem, 152 switches::kDisableFileSystem,
153 switches::kDisableSeccompFilterSandbox, 153 switches::kDisableSeccompFilterSandbox,
154 switches::kEnableExperimentalWebPlatformFeatures, 154 switches::kEnableExperimentalWebPlatformFeatures,
155 switches::kEnableServiceWorker,
155 #if defined(OS_MACOSX) 156 #if defined(OS_MACOSX)
156 switches::kEnableSandboxLogging, 157 switches::kEnableSandboxLogging,
157 #endif 158 #endif
158 }; 159 };
159 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, 160 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames,
160 arraysize(kSwitchNames)); 161 arraysize(kSwitchNames));
161 162
162 #if defined(OS_POSIX) 163 #if defined(OS_POSIX)
163 bool use_zygote = true; 164 bool use_zygote = true;
164 165
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 return false; 681 return false;
681 } 682 }
682 683
683 WorkerProcessHost::WorkerInstance::FilterInfo 684 WorkerProcessHost::WorkerInstance::FilterInfo
684 WorkerProcessHost::WorkerInstance::GetFilter() const { 685 WorkerProcessHost::WorkerInstance::GetFilter() const {
685 DCHECK(NumFilters() == 1); 686 DCHECK(NumFilters() == 1);
686 return *filters_.begin(); 687 return *filters_.begin();
687 } 688 }
688 689
689 } // namespace content 690 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698