| 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 614 |
| 615 // Runs plugins inside the renderer process | 615 // Runs plugins inside the renderer process |
| 616 const char kInProcessPlugins[] = "in-process-plugins"; | 616 const char kInProcessPlugins[] = "in-process-plugins"; |
| 617 | 617 |
| 618 // Specifies the flags passed to JS engine | 618 // Specifies the flags passed to JS engine |
| 619 const char kJavaScriptFlags[] = "js-flags"; | 619 const char kJavaScriptFlags[] = "js-flags"; |
| 620 | 620 |
| 621 // Load an NPAPI plugin from the specified path. | 621 // Load an NPAPI plugin from the specified path. |
| 622 const char kLoadPlugin[] = "load-plugin"; | 622 const char kLoadPlugin[] = "load-plugin"; |
| 623 | 623 |
| 624 // Logs GPU control list decisions when enforcing blacklist rules. |
| 625 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; |
| 626 |
| 624 // Sets the minimum log level. Valid values are from 0 to 3: | 627 // Sets the minimum log level. Valid values are from 0 to 3: |
| 625 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 628 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 626 const char kLoggingLevel[] = "log-level"; | 629 const char kLoggingLevel[] = "log-level"; |
| 627 | 630 |
| 628 // Enables displaying net log events on the command line, or writing the events | 631 // Enables displaying net log events on the command line, or writing the events |
| 629 // to a separate file if a file name is given. | 632 // to a separate file if a file name is given. |
| 630 const char kLogNetLog[] = "log-net-log"; | 633 const char kLogNetLog[] = "log-net-log"; |
| 631 | 634 |
| 632 // Make plugin processes log their sent and received messages to VLOG(1). | 635 // Make plugin processes log their sent and received messages to VLOG(1). |
| 633 const char kLogPluginMessages[] = "log-plugin-messages"; | 636 const char kLogPluginMessages[] = "log-plugin-messages"; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 // iframe support is available. Cross-site network requests do attach the | 770 // iframe support is available. Cross-site network requests do attach the |
| 768 // normal set of cookies, but a renderer process is only allowed to view or | 771 // normal set of cookies, but a renderer process is only allowed to view or |
| 769 // modify cookies for its own site (via JavaScript). | 772 // modify cookies for its own site (via JavaScript). |
| 770 // TODO(irobert): Implement the cross-site document blocking in | 773 // TODO(irobert): Implement the cross-site document blocking in |
| 771 // http://crbug.com/159215. | 774 // http://crbug.com/159215. |
| 772 const char kSitePerProcess[] = "site-per-process"; | 775 const char kSitePerProcess[] = "site-per-process"; |
| 773 | 776 |
| 774 // Skip gpu info collection, blacklist loading, and blacklist auto-update | 777 // Skip gpu info collection, blacklist loading, and blacklist auto-update |
| 775 // scheduling at browser startup time. | 778 // scheduling at browser startup time. |
| 776 // Therefore, all GPU features are available, and about:gpu page shows empty | 779 // Therefore, all GPU features are available, and about:gpu page shows empty |
| 777 // content. The switch is intended only for tests. | 780 // content. The switch is intended only for layout tests. |
| 781 // TODO(gab): Get rid of this switch entirely. |
| 778 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; | 782 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; |
| 779 | 783 |
| 780 // Specifies the request key for the continuous speech recognition webservice. | 784 // Specifies the request key for the continuous speech recognition webservice. |
| 781 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 785 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; |
| 782 | 786 |
| 783 // Specifies if the |StatsCollectionController| needs to be bound in the | 787 // Specifies if the |StatsCollectionController| needs to be bound in the |
| 784 // renderer. This binding happens on per-frame basis and hence can potentially | 788 // renderer. This binding happens on per-frame basis and hence can potentially |
| 785 // be a performance bottleneck. One should only enable it when running a test | 789 // be a performance bottleneck. One should only enable it when running a test |
| 786 // that needs to access the provided statistics. | 790 // that needs to access the provided statistics. |
| 787 const char kStatsCollectionController[] = | 791 const char kStatsCollectionController[] = |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 #endif | 979 #endif |
| 976 | 980 |
| 977 #if defined(USE_AURA) | 981 #if defined(USE_AURA) |
| 978 // Forces usage of the test compositor. Needed to run ui tests on bots. | 982 // Forces usage of the test compositor. Needed to run ui tests on bots. |
| 979 extern const char kTestCompositor[] = "test-compositor"; | 983 extern const char kTestCompositor[] = "test-compositor"; |
| 980 #endif | 984 #endif |
| 981 | 985 |
| 982 // Don't dump stuff here, follow the same order as the header. | 986 // Don't dump stuff here, follow the same order as the header. |
| 983 | 987 |
| 984 } // namespace switches | 988 } // namespace switches |
| OLD | NEW |