| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 // pinch gestures. | 452 // pinch gestures. |
| 453 const char kEnableViewport[] = "enable-viewport"; | 453 const char kEnableViewport[] = "enable-viewport"; |
| 454 | 454 |
| 455 // Enables experimental features for the geolocation API. | 455 // Enables experimental features for the geolocation API. |
| 456 // Current features: | 456 // Current features: |
| 457 // - CoreLocation support for Mac OS X 10.6 | 457 // - CoreLocation support for Mac OS X 10.6 |
| 458 // - Gateway location for Linux and Windows | 458 // - Gateway location for Linux and Windows |
| 459 // - Location platform support for Windows 7 | 459 // - Location platform support for Windows 7 |
| 460 const char kExperimentalLocationFeatures[] = "experimental-location-features"; | 460 const char kExperimentalLocationFeatures[] = "experimental-location-features"; |
| 461 | 461 |
| 462 // Load NPAPI plugins from the specified directory. | |
| 463 const char kExtraPluginDir[] = "extra-plugin-dir"; | |
| 464 | |
| 465 // If accelerated compositing is supported, always enter compositing mode for | 462 // If accelerated compositing is supported, always enter compositing mode for |
| 466 // the base layer even when compositing is not strictly required. | 463 // the base layer even when compositing is not strictly required. |
| 467 const char kForceCompositingMode[] = "force-compositing-mode"; | 464 const char kForceCompositingMode[] = "force-compositing-mode"; |
| 468 | 465 |
| 469 // This flag disables force compositing mode and prevents it from being enabled | 466 // This flag disables force compositing mode and prevents it from being enabled |
| 470 // via field trials. | 467 // via field trials. |
| 471 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; | 468 const char kDisableForceCompositingMode[] = "disable-force-compositing-mode"; |
| 472 | 469 |
| 473 // Some field trials may be randomized in the browser, and the randomly selected | 470 // Some field trials may be randomized in the browser, and the randomly selected |
| 474 // outcome needs to be propagated to the renderer. For instance, this is used | 471 // 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... |
| 522 | 519 |
| 523 // Run the GPU process as a thread in the browser process. | 520 // Run the GPU process as a thread in the browser process. |
| 524 const char kInProcessGPU[] = "in-process-gpu"; | 521 const char kInProcessGPU[] = "in-process-gpu"; |
| 525 | 522 |
| 526 // Runs plugins inside the renderer process | 523 // Runs plugins inside the renderer process |
| 527 const char kInProcessPlugins[] = "in-process-plugins"; | 524 const char kInProcessPlugins[] = "in-process-plugins"; |
| 528 | 525 |
| 529 // Specifies the flags passed to JS engine | 526 // Specifies the flags passed to JS engine |
| 530 const char kJavaScriptFlags[] = "js-flags"; | 527 const char kJavaScriptFlags[] = "js-flags"; |
| 531 | 528 |
| 529 // Load NPAPI plugins from the specified directory. |
| 530 const char kExtraPluginDir[] = "extra-plugin-dir"; |
| 531 |
| 532 // Load an NPAPI plugin from the specified path. | 532 // Load an NPAPI plugin from the specified path. |
| 533 const char kLoadPlugin[] = "load-plugin"; | 533 const char kLoadPlugin[] = "load-plugin"; |
| 534 | 534 |
| 535 // Disable discovering third-party plug-ins. Effectively loading only |
| 536 // ones shipped with the browser plus third-party ones as specified by |
| 537 // --extra-plugin-dir and --load-plugin switches. |
| 538 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; |
| 539 |
| 535 // Sets the minimum log level. Valid values are from 0 to 3: | 540 // Sets the minimum log level. Valid values are from 0 to 3: |
| 536 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 541 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 537 const char kLoggingLevel[] = "log-level"; | 542 const char kLoggingLevel[] = "log-level"; |
| 538 | 543 |
| 539 // Make plugin processes log their sent and received messages to VLOG(1). | 544 // Make plugin processes log their sent and received messages to VLOG(1). |
| 540 const char kLogPluginMessages[] = "log-plugin-messages"; | 545 const char kLogPluginMessages[] = "log-plugin-messages"; |
| 541 | 546 |
| 542 // Sample memory usage with high frequency and store the results to the | 547 // Sample memory usage with high frequency and store the results to the |
| 543 // Renderer.Memory histogram. Used in memory tests. | 548 // Renderer.Memory histogram. Used in memory tests. |
| 544 const char kMemoryMetrics[] = "memory-metrics"; | 549 const char kMemoryMetrics[] = "memory-metrics"; |
| (...skipping 305 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 |