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

Side by Side Diff: content/public/common/content_switches.cc

Issue 874613002: Don't share Push API message payloads unless explicitly enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 // Enables compositor-accelerated touch-screen pinch gestures. 360 // Enables compositor-accelerated touch-screen pinch gestures.
361 const char kEnablePinch[] = "enable-pinch"; 361 const char kEnablePinch[] = "enable-pinch";
362 362
363 // Make the values returned to window.performance.memory more granular and more 363 // Make the values returned to window.performance.memory more granular and more
364 // up to date in shared worker. Without this flag, the memory information is 364 // up to date in shared worker. Without this flag, the memory information is
365 // still available, but it is bucketized and updated less frequently. This flag 365 // still available, but it is bucketized and updated less frequently. This flag
366 // also applys to workers. 366 // also applys to workers.
367 const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info"; 367 const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";
368 368
369 // Enables payloads for received push messages when using the W3C Push API.
370 const char kEnablePushMessagePayload[] = "enable-push-message-payload";
371
369 // Set options to cache V8 data. (off, preparse data, or code) 372 // Set options to cache V8 data. (off, preparse data, or code)
370 const char kV8CacheOptions[] = "v8-cache-options"; 373 const char kV8CacheOptions[] = "v8-cache-options";
371 374
372 // Enables the CSS multicol implementation that uses the regions implementation. 375 // Enables the CSS multicol implementation that uses the regions implementation.
373 const char kEnableRegionBasedColumns[] = 376 const char kEnableRegionBasedColumns[] =
374 "enable-region-based-columns"; 377 "enable-region-based-columns";
375 378
376 // Replaces renderer-browser IPC channel with ChnanelMojo. 379 // Replaces renderer-browser IPC channel with ChnanelMojo.
377 const char kEnableRendererMojoChannel[] = 380 const char kEnableRendererMojoChannel[] =
378 "enable-renderer-mojo-channel"; 381 "enable-renderer-mojo-channel";
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) 971 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown))
969 return false; 972 return false;
970 // Default. 973 // Default.
971 return group_name == "Enabled"; 974 return group_name == "Enabled";
972 } 975 }
973 #endif 976 #endif
974 977
975 // Don't dump stuff here, follow the same order as the header. 978 // Don't dump stuff here, follow the same order as the header.
976 979
977 } // namespace switches 980 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698