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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 7779040: Start moving code from BrowserMain to content, so that it can be reused by all embedders of conte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix windows unittest Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Causes the automation provider to reinitialize its IPC channel instead of 94 // Causes the automation provider to reinitialize its IPC channel instead of
95 // shutting down when a client disconnects. 95 // shutting down when a client disconnects.
96 const char kAutomationReinitializeOnChannelError[] = 96 const char kAutomationReinitializeOnChannelError[] =
97 "automation-reinitialize-on-channel-error"; 97 "automation-reinitialize-on-channel-error";
98 98
99 // When the option to block third-party cookies from being set is enabled, 99 // When the option to block third-party cookies from being set is enabled,
100 // also block third-party cookies from being read. 100 // also block third-party cookies from being read.
101 const char kBlockReadingThirdPartyCookies[] = 101 const char kBlockReadingThirdPartyCookies[] =
102 "block-reading-third-party-cookies"; 102 "block-reading-third-party-cookies";
103 103
104 // Causes the browser process to throw an assertion on startup.
105 const char kBrowserAssertTest[] = "assert-test";
106
107 // Causes the browser process to crash on startup.
108 const char kBrowserCrashTest[] = "crash-test";
109
110 // How often (in seconds) to check for updates. Should only be used for 104 // How often (in seconds) to check for updates. Should only be used for
111 // testing purposes. 105 // testing purposes.
112 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; 106 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval";
113 107
114 // Tells chrome to load the specified version of chrome.dll on Windows. If 108 // Tells chrome to load the specified version of chrome.dll on Windows. If
115 // this version cannot be loaded, Chrome will exit. 109 // this version cannot be loaded, Chrome will exit.
116 const char kChromeVersion[] = "chrome-version"; 110 const char kChromeVersion[] = "chrome-version";
117 111
118 // Comma-separated list of SSL cipher suites to disable. 112 // Comma-separated list of SSL cipher suites to disable.
119 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist"; 113 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 290
297 // Disable the sanitized version of client-side phishing detection, for use by 291 // Disable the sanitized version of client-side phishing detection, for use by
298 // non-UMA users. Any features containing portions of the URL or page content 292 // non-UMA users. Any features containing portions of the URL or page content
299 // are not sent as part of the pingback in this mode. 293 // are not sent as part of the pingback in this mode.
300 const char kDisableSanitizedClientSidePhishingDetection[] = 294 const char kDisableSanitizedClientSidePhishingDetection[] =
301 "disable-sanitized-client-side-phishing-detection"; 295 "disable-sanitized-client-side-phishing-detection";
302 296
303 // Disable site-specific tailoring to compatibility issues in WebKit. 297 // Disable site-specific tailoring to compatibility issues in WebKit.
304 const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks"; 298 const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks";
305 299
306 // Disable False Start in SSL and TLS connections.
307 const char kDisableSSLFalseStart[] = "disable-ssl-false-start";
308
309 // Disable SSL v3 (usually for testing purposes). 300 // Disable SSL v3 (usually for testing purposes).
310 const char kDisableSSL3[] = "disable-ssl3"; 301 const char kDisableSSL3[] = "disable-ssl3";
311 302
312 // Disable syncing browser data to a Google Account. 303 // Disable syncing browser data to a Google Account.
313 const char kDisableSync[] = "disable-sync"; 304 const char kDisableSync[] = "disable-sync";
314 305
315 // Disable syncing of apps. 306 // Disable syncing of apps.
316 const char kDisableSyncApps[] = "disable-sync-apps"; 307 const char kDisableSyncApps[] = "disable-sync-apps";
317 308
318 // Disable syncing of autofill. 309 // Disable syncing of autofill.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // Enables compositing to texture instead of display. 425 // Enables compositing to texture instead of display.
435 const char kEnableCompositeToTexture[] = "enable-composite-to-texture"; 426 const char kEnableCompositeToTexture[] = "enable-composite-to-texture";
436 427
437 // Enables establishing a backup TCP connection if a specified timeout is 428 // Enables establishing a backup TCP connection if a specified timeout is
438 // exceeded. 429 // exceeded.
439 const char kEnableConnectBackupJobs[] = "enable-connect-backup-jobs"; 430 const char kEnableConnectBackupJobs[] = "enable-connect-backup-jobs";
440 431
441 // Enables web developers to create apps for Chrome without using crx packages. 432 // Enables web developers to create apps for Chrome without using crx packages.
442 const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps"; 433 const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps";
443 434
444 // Enable DNS side checking of certificates. Still experimental, should only
445 // be used by developers at the current time.
446 const char kEnableDNSCertProvenanceChecking[] =
447 "enable-dns-cert-provenance-checking";
448
449 // Enables extension APIs that are in development. 435 // Enables extension APIs that are in development.
450 const char kEnableExperimentalExtensionApis[] = 436 const char kEnableExperimentalExtensionApis[] =
451 "enable-experimental-extension-apis"; 437 "enable-experimental-extension-apis";
452 438
453 // Enable experimental timeline API. 439 // Enable experimental timeline API.
454 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; 440 const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api";
455 441
456 // Enable the fastback page cache. 442 // Enable the fastback page cache.
457 const char kEnableFastback[] = "enable-fastback"; 443 const char kEnableFastback[] = "enable-fastback";
458 444
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // Allows reporting memory info (JS heap size) to page. 481 // Allows reporting memory info (JS heap size) to page.
496 const char kEnableMemoryInfo[] = "enable-memory-info"; 482 const char kEnableMemoryInfo[] = "enable-memory-info";
497 483
498 // Runs the Native Client inside the renderer process and enables GPU plugin 484 // Runs the Native Client inside the renderer process and enables GPU plugin
499 // (internally adds lEnableGpuPlugin to the command line). 485 // (internally adds lEnableGpuPlugin to the command line).
500 const char kEnableNaCl[] = "enable-nacl"; 486 const char kEnableNaCl[] = "enable-nacl";
501 487
502 // Enables debugging via RSP over a socket. 488 // Enables debugging via RSP over a socket.
503 const char kEnableNaClDebug[] = "enable-nacl-debug"; 489 const char kEnableNaClDebug[] = "enable-nacl-debug";
504 490
505 // Enables TLS origin bound certificate extension.
506 const char kEnableOriginBoundCerts[] = "enable-origin-bound-certs";
507
508 // Enable content settings based on host *and* plug-in. 491 // Enable content settings based on host *and* plug-in.
509 const char kEnableResourceContentSettings[] = 492 const char kEnableResourceContentSettings[] =
510 "enable-resource-content-settings"; 493 "enable-resource-content-settings";
511 494
512 // Enable panels (always on-top docked pop-up windows). 495 // Enable panels (always on-top docked pop-up windows).
513 const char kEnablePanels[] = "enable-panels"; 496 const char kEnablePanels[] = "enable-panels";
514 497
515 // Enable speculative TCP/IP preconnection. 498 // Enable speculative TCP/IP preconnection.
516 const char kEnablePreconnect[] = "enable-preconnect"; 499 const char kEnablePreconnect[] = "enable-preconnect";
517 500
518 // Enable the IsSearchProviderInstalled and InstallSearchProvider with an extra 501 // Enable the IsSearchProviderInstalled and InstallSearchProvider with an extra
519 // parameter to indicate if the provider should be the default. 502 // parameter to indicate if the provider should be the default.
520 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; 503 const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2";
521 504
522 // Enable the use of the ShortcutsProvider for autocomplete results. 505 // Enable the use of the ShortcutsProvider for autocomplete results.
523 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider"; 506 const char kEnableShortcutsProvider[] = "enable-shortcuts-provider";
524 507
525 // On platforms that support it, enable smooth scroll animation. 508 // On platforms that support it, enable smooth scroll animation.
526 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; 509 const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";
527
528 // Enables TLS cached info extension.
529 const char kEnableSSLCachedInfo[] = "enable-ssl-cached-info";
530
531 // Enable OAuth sign-in for sync. 510 // Enable OAuth sign-in for sync.
532 const char kEnableSyncOAuth[] = "enable-sync-oauth"; 511 const char kEnableSyncOAuth[] = "enable-sync-oauth";
533 512
534 // Enable syncing custom search engines. 513 // Enable syncing custom search engines.
535 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines"; 514 const char kEnableSyncSearchEngines[] = "enable-sync-search-engines";
536 515
537 // Enable syncing browser sessions. 516 // Enable syncing browser sessions.
538 const char kEnableSyncSessions[] = "enable-sync-sessions"; 517 const char kEnableSyncSessions[] = "enable-sync-sessions";
539 518
540 // Enable syncing browser sessions for other synced clients. 519 // Enable syncing browser sessions for other synced clients.
541 const char kEnableSyncSessionsForOtherClients[] = 520 const char kEnableSyncSessionsForOtherClients[] =
542 "enable-sync-sessions-for-other-clients"; 521 "enable-sync-sessions-for-other-clients";
543 522
544 // Enables context menu for selecting groups of tabs. 523 // Enables context menu for selecting groups of tabs.
545 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu"; 524 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu";
546 525
547 // Enable the "synced bookmarks" folder. 526 // Enable the "synced bookmarks" folder.
548 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder"; 527 const char kEnableSyncedBookmarksFolder[] = "enable-synced-bookmarks-folder";
549 528
550 // Enable use of experimental TCP sockets API for sending data in the
551 // SYN packet.
552 const char kEnableTcpFastOpen[] = "enable-tcp-fastopen";
553
554 // Enables the option to show tabs as a vertical stack down the side of the 529 // Enables the option to show tabs as a vertical stack down the side of the
555 // browser window. 530 // browser window.
556 const char kEnableVerticalTabs[] = "enable-vertical-tabs"; 531 const char kEnableVerticalTabs[] = "enable-vertical-tabs";
557 532
558 // Spawn threads to watch for excessive delays in specified message loops. 533 // Spawn threads to watch for excessive delays in specified message loops.
559 // User should set breakpoints on Alarm() to examine problematic thread. 534 // User should set breakpoints on Alarm() to examine problematic thread.
560 // Usage: -enable-watchdog=[ui][io] 535 // Usage: -enable-watchdog=[ui][io]
561 // Order of the listed sub-arguments does not matter. 536 // Order of the listed sub-arguments does not matter.
562 const char kEnableWatchdog[] = "enable-watchdog"; 537 const char kEnableWatchdog[] = "enable-watchdog";
563 538
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1236
1262 // ----------------------------------------------------------------------------- 1237 // -----------------------------------------------------------------------------
1263 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1238 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1264 // 1239 //
1265 // You were going to just dump your switches here, weren't you? Instead, 1240 // You were going to just dump your switches here, weren't you? Instead,
1266 // please put them in alphabetical order above, or in order inside the 1241 // please put them in alphabetical order above, or in order inside the
1267 // appropriate ifdef at the bottom. The order should match the header. 1242 // appropriate ifdef at the bottom. The order should match the header.
1268 // ----------------------------------------------------------------------------- 1243 // -----------------------------------------------------------------------------
1269 1244
1270 } // namespace switches 1245 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698