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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 | 603 |
604 // Runs plugins inside the renderer process | 604 // Runs plugins inside the renderer process |
605 const char kInProcessPlugins[] = "in-process-plugins"; | 605 const char kInProcessPlugins[] = "in-process-plugins"; |
606 | 606 |
607 // Specifies the flags passed to JS engine | 607 // Specifies the flags passed to JS engine |
608 const char kJavaScriptFlags[] = "js-flags"; | 608 const char kJavaScriptFlags[] = "js-flags"; |
609 | 609 |
610 // Load an NPAPI plugin from the specified path. | 610 // Load an NPAPI plugin from the specified path. |
611 const char kLoadPlugin[] = "load-plugin"; | 611 const char kLoadPlugin[] = "load-plugin"; |
612 | 612 |
613 // Logs GPU control list decisions when enforcing blacklist rules. | |
614 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; | |
615 | |
616 // Sets the minimum log level. Valid values are from 0 to 3: | 613 // Sets the minimum log level. Valid values are from 0 to 3: |
617 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 614 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
618 const char kLoggingLevel[] = "log-level"; | 615 const char kLoggingLevel[] = "log-level"; |
619 | 616 |
620 // Enables displaying net log events on the command line, or writing the events | 617 // Enables displaying net log events on the command line, or writing the events |
621 // to a separate file if a file name is given. | 618 // to a separate file if a file name is given. |
622 const char kLogNetLog[] = "log-net-log"; | 619 const char kLogNetLog[] = "log-net-log"; |
623 | 620 |
624 // Make plugin processes log their sent and received messages to VLOG(1). | 621 // Make plugin processes log their sent and received messages to VLOG(1). |
625 const char kLogPluginMessages[] = "log-plugin-messages"; | 622 const char kLogPluginMessages[] = "log-plugin-messages"; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // iframe support is available. Cross-site network requests do attach the | 753 // iframe support is available. Cross-site network requests do attach the |
757 // normal set of cookies, but a renderer process is only allowed to view or | 754 // normal set of cookies, but a renderer process is only allowed to view or |
758 // modify cookies for its own site (via JavaScript). | 755 // modify cookies for its own site (via JavaScript). |
759 // TODO(irobert): Implement the cross-site document blocking in | 756 // TODO(irobert): Implement the cross-site document blocking in |
760 // http://crbug.com/159215. | 757 // http://crbug.com/159215. |
761 const char kSitePerProcess[] = "site-per-process"; | 758 const char kSitePerProcess[] = "site-per-process"; |
762 | 759 |
763 // Skip gpu info collection, blacklist loading, and blacklist auto-update | 760 // Skip gpu info collection, blacklist loading, and blacklist auto-update |
764 // scheduling at browser startup time. | 761 // scheduling at browser startup time. |
765 // Therefore, all GPU features are available, and about:gpu page shows empty | 762 // Therefore, all GPU features are available, and about:gpu page shows empty |
766 // content. The switch is intended only for layout tests. | 763 // content. The switch is intended only for tests. |
767 // TODO(gab): Get rid of this switch entirely. | |
768 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; | 764 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; |
769 | 765 |
770 // Specifies the request key for the continuous speech recognition webservice. | 766 // Specifies the request key for the continuous speech recognition webservice. |
771 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 767 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; |
772 | 768 |
773 // Specifies if the |StatsCollectionController| needs to be bound in the | 769 // Specifies if the |StatsCollectionController| needs to be bound in the |
774 // renderer. This binding happens on per-frame basis and hence can potentially | 770 // renderer. This binding happens on per-frame basis and hence can potentially |
775 // be a performance bottleneck. One should only enable it when running a test | 771 // be a performance bottleneck. One should only enable it when running a test |
776 // that needs to access the provided statistics. | 772 // that needs to access the provided statistics. |
777 const char kStatsCollectionController[] = | 773 const char kStatsCollectionController[] = |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 #endif | 961 #endif |
966 | 962 |
967 #if defined(USE_AURA) | 963 #if defined(USE_AURA) |
968 // Forces usage of the test compositor. Needed to run ui tests on bots. | 964 // Forces usage of the test compositor. Needed to run ui tests on bots. |
969 extern const char kTestCompositor[] = "test-compositor"; | 965 extern const char kTestCompositor[] = "test-compositor"; |
970 #endif | 966 #endif |
971 | 967 |
972 // Don't dump stuff here, follow the same order as the header. | 968 // Don't dump stuff here, follow the same order as the header. |
973 | 969 |
974 } // namespace switches | 970 } // namespace switches |
OLD | NEW |