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

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

Issue 268623009: Introduce enablePreciseMemoryInfo switch and apply it to both renderer and shared worker (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::kEnablePreciseMemoryInfo,
208 switches::kEnableServiceWorker, 208 switches::kEnableServiceWorker,
209 #if defined(OS_MACOSX) 209 #if defined(OS_MACOSX)
210 switches::kEnableSandboxLogging, 210 switches::kEnableSandboxLogging,
211 #endif 211 #endif
212 switches::kJavaScriptFlags, 212 switches::kJavaScriptFlags,
213 switches::kNoSandbox 213 switches::kNoSandbox
214 }; 214 };
215 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames, 215 cmd_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), kSwitchNames,
216 arraysize(kSwitchNames)); 216 arraysize(kSwitchNames));
217 217
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 return false; 828 return false;
829 } 829 }
830 830
831 WorkerProcessHost::WorkerInstance::FilterInfo 831 WorkerProcessHost::WorkerInstance::FilterInfo
832 WorkerProcessHost::WorkerInstance::GetFilter() const { 832 WorkerProcessHost::WorkerInstance::GetFilter() const {
833 DCHECK(NumFilters() == 1); 833 DCHECK(NumFilters() == 1);
834 return *filters_.begin(); 834 return *filters_.begin();
835 } 835 }
836 836
837 } // namespace content 837 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698