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/public/common/content_switches.h" | 5 #include "content/public/common/content_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // By default, file:// URIs cannot read other file:// URIs. This is an | 9 // By default, file:// URIs cannot read other file:// URIs. This is an |
10 // override for developers who need the old behavior for testing. | 10 // override for developers who need the old behavior for testing. |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 // pinch gestures. | 449 // pinch gestures. |
450 const char kEnableViewport[] = "enable-viewport"; | 450 const char kEnableViewport[] = "enable-viewport"; |
451 | 451 |
452 // Enables experimental features for the geolocation API. | 452 // Enables experimental features for the geolocation API. |
453 // Current features: | 453 // Current features: |
454 // - CoreLocation support for Mac OS X 10.6 | 454 // - CoreLocation support for Mac OS X 10.6 |
455 // - Gateway location for Linux and Windows | 455 // - Gateway location for Linux and Windows |
456 // - Location platform support for Windows 7 | 456 // - Location platform support for Windows 7 |
457 const char kExperimentalLocationFeatures[] = "experimental-location-features"; | 457 const char kExperimentalLocationFeatures[] = "experimental-location-features"; |
458 | 458 |
459 // Load NPAPI plugins from the specified directory. | |
460 const char kExtraPluginDir[] = "extra-plugin-dir"; | |
461 | |
462 // If accelerated compositing is supported, always enter compositing mode for | 459 // If accelerated compositing is supported, always enter compositing mode for |
463 // the base layer even when compositing is not strictly required. | 460 // the base layer even when compositing is not strictly required. |
464 const char kForceCompositingMode[] = "force-compositing-mode"; | 461 const char kForceCompositingMode[] = "force-compositing-mode"; |
465 | 462 |
466 // This flag disables force compositing mode and prevents it from being enabled | 463 // This flag disables force compositing mode and prevents it from being enabled |
467 // via field trials. | 464 // via field trials. |
468 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; | 465 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; |
469 | 466 |
470 // Some field trials may be randomized in the browser, and the randomly selected | 467 // Some field trials may be randomized in the browser, and the randomly selected |
471 // outcome needs to be propagated to the renderer. For instance, this is used | 468 // outcome needs to be propagated to the renderer. For instance, this is used |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 516 |
520 // Run the GPU process as a thread in the browser process. | 517 // Run the GPU process as a thread in the browser process. |
521 const char kInProcessGPU[] = "in-process-gpu"; | 518 const char kInProcessGPU[] = "in-process-gpu"; |
522 | 519 |
523 // Runs plugins inside the renderer process | 520 // Runs plugins inside the renderer process |
524 const char kInProcessPlugins[] = "in-process-plugins"; | 521 const char kInProcessPlugins[] = "in-process-plugins"; |
525 | 522 |
526 // Specifies the flags passed to JS engine | 523 // Specifies the flags passed to JS engine |
527 const char kJavaScriptFlags[] = "js-flags"; | 524 const char kJavaScriptFlags[] = "js-flags"; |
528 | 525 |
| 526 // Load NPAPI plugins from the specified directory. |
| 527 const char kExtraPluginDir[] = "extra-plugin-dir"; |
| 528 |
529 // Load an NPAPI plugin from the specified path. | 529 // Load an NPAPI plugin from the specified path. |
530 const char kLoadPlugin[] = "load-plugin"; | 530 const char kLoadPlugin[] = "load-plugin"; |
531 | 531 |
| 532 // Disable discovering third-party plug-ins. Effectively loading only |
| 533 // ones shipped with the browser plus third-party ones as specified by |
| 534 // --extra-plugin-dir and --load-plugin switches. |
| 535 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; |
| 536 |
532 // Sets the minimum log level. Valid values are from 0 to 3: | 537 // Sets the minimum log level. Valid values are from 0 to 3: |
533 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 538 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
534 const char kLoggingLevel[] = "log-level"; | 539 const char kLoggingLevel[] = "log-level"; |
535 | 540 |
536 // Make plugin processes log their sent and received messages to VLOG(1). | 541 // Make plugin processes log their sent and received messages to VLOG(1). |
537 const char kLogPluginMessages[] = "log-plugin-messages"; | 542 const char kLogPluginMessages[] = "log-plugin-messages"; |
538 | 543 |
539 // Sample memory usage with high frequency and store the results to the | 544 // Sample memory usage with high frequency and store the results to the |
540 // Renderer.Memory histogram. Used in memory tests. | 545 // Renderer.Memory histogram. Used in memory tests. |
541 const char kMemoryMetrics[] = "memory-metrics"; | 546 const char kMemoryMetrics[] = "memory-metrics"; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 // Forward overscroll event data from the renderer to the browser. | 855 // Forward overscroll event data from the renderer to the browser. |
851 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; | 856 const char kEnableOverscrollNotifications[] = "enable-overscroll-notifications"; |
852 | 857 |
853 // Enables 'image/webp' accept header for image requests. | 858 // Enables 'image/webp' accept header for image requests. |
854 const char kEnableWebPInAcceptHeader[] = "enable-webp-in-accept-header"; | 859 const char kEnableWebPInAcceptHeader[] = "enable-webp-in-accept-header"; |
855 | 860 |
856 // Enables WebGL extensions not yet approved by the community. | 861 // Enables WebGL extensions not yet approved by the community. |
857 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; | 862 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; |
858 | 863 |
859 } // namespace switches | 864 } // namespace switches |
OLD | NEW |