| 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 634 |
| 635 // Runs plugins inside the renderer process | 635 // Runs plugins inside the renderer process |
| 636 const char kInProcessPlugins[] = "in-process-plugins"; | 636 const char kInProcessPlugins[] = "in-process-plugins"; |
| 637 | 637 |
| 638 // Specifies the flags passed to JS engine | 638 // Specifies the flags passed to JS engine |
| 639 const char kJavaScriptFlags[] = "js-flags"; | 639 const char kJavaScriptFlags[] = "js-flags"; |
| 640 | 640 |
| 641 // Load an NPAPI plugin from the specified path. | 641 // Load an NPAPI plugin from the specified path. |
| 642 const char kLoadPlugin[] = "load-plugin"; | 642 const char kLoadPlugin[] = "load-plugin"; |
| 643 | 643 |
| 644 // Logs GPU control list decisions when enforcing blacklist rules. |
| 645 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; |
| 646 |
| 644 // Sets the minimum log level. Valid values are from 0 to 3: | 647 // Sets the minimum log level. Valid values are from 0 to 3: |
| 645 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 648 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 646 const char kLoggingLevel[] = "log-level"; | 649 const char kLoggingLevel[] = "log-level"; |
| 647 | 650 |
| 648 // Enables displaying net log events on the command line, or writing the events | 651 // Enables displaying net log events on the command line, or writing the events |
| 649 // to a separate file if a file name is given. | 652 // to a separate file if a file name is given. |
| 650 const char kLogNetLog[] = "log-net-log"; | 653 const char kLogNetLog[] = "log-net-log"; |
| 651 | 654 |
| 652 // Make plugin processes log their sent and received messages to VLOG(1). | 655 // Make plugin processes log their sent and received messages to VLOG(1). |
| 653 const char kLogPluginMessages[] = "log-plugin-messages"; | 656 const char kLogPluginMessages[] = "log-plugin-messages"; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // iframe support is available. Cross-site network requests do attach the | 786 // iframe support is available. Cross-site network requests do attach the |
| 784 // normal set of cookies, but a renderer process is only allowed to view or | 787 // normal set of cookies, but a renderer process is only allowed to view or |
| 785 // modify cookies for its own site (via JavaScript). | 788 // modify cookies for its own site (via JavaScript). |
| 786 // TODO(irobert): Implement the cross-site document blocking in | 789 // TODO(irobert): Implement the cross-site document blocking in |
| 787 // http://crbug.com/159215. | 790 // http://crbug.com/159215. |
| 788 const char kSitePerProcess[] = "site-per-process"; | 791 const char kSitePerProcess[] = "site-per-process"; |
| 789 | 792 |
| 790 // Skip gpu info collection, blacklist loading, and blacklist auto-update | 793 // Skip gpu info collection, blacklist loading, and blacklist auto-update |
| 791 // scheduling at browser startup time. | 794 // scheduling at browser startup time. |
| 792 // Therefore, all GPU features are available, and about:gpu page shows empty | 795 // Therefore, all GPU features are available, and about:gpu page shows empty |
| 793 // content. The switch is intended only for tests. | 796 // content. The switch is intended only for layout tests. |
| 797 // TODO(gab): Get rid of this switch entirely. |
| 794 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; | 798 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; |
| 795 | 799 |
| 796 // Specifies the request key for the continuous speech recognition webservice. | 800 // Specifies the request key for the continuous speech recognition webservice. |
| 797 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 801 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; |
| 798 | 802 |
| 799 // Specifies if the |StatsCollectionController| needs to be bound in the | 803 // Specifies if the |StatsCollectionController| needs to be bound in the |
| 800 // renderer. This binding happens on per-frame basis and hence can potentially | 804 // renderer. This binding happens on per-frame basis and hence can potentially |
| 801 // be a performance bottleneck. One should only enable it when running a test | 805 // be a performance bottleneck. One should only enable it when running a test |
| 802 // that needs to access the provided statistics. | 806 // that needs to access the provided statistics. |
| 803 const char kStatsCollectionController[] = | 807 const char kStatsCollectionController[] = |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 #endif | 995 #endif |
| 992 | 996 |
| 993 #if defined(USE_AURA) | 997 #if defined(USE_AURA) |
| 994 // Forces usage of the test compositor. Needed to run ui tests on bots. | 998 // Forces usage of the test compositor. Needed to run ui tests on bots. |
| 995 extern const char kTestCompositor[] = "test-compositor"; | 999 extern const char kTestCompositor[] = "test-compositor"; |
| 996 #endif | 1000 #endif |
| 997 | 1001 |
| 998 // Don't dump stuff here, follow the same order as the header. | 1002 // Don't dump stuff here, follow the same order as the header. |
| 999 | 1003 |
| 1000 } // namespace switches | 1004 } // namespace switches |
| OLD | NEW |