Chromium Code Reviews| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 604 | 604 |
| 605 // Runs plugins inside the renderer process | 605 // Runs plugins inside the renderer process |
| 606 const char kInProcessPlugins[] = "in-process-plugins"; | 606 const char kInProcessPlugins[] = "in-process-plugins"; |
| 607 | 607 |
| 608 // Specifies the flags passed to JS engine | 608 // Specifies the flags passed to JS engine |
| 609 const char kJavaScriptFlags[] = "js-flags"; | 609 const char kJavaScriptFlags[] = "js-flags"; |
| 610 | 610 |
| 611 // Load an NPAPI plugin from the specified path. | 611 // Load an NPAPI plugin from the specified path. |
| 612 const char kLoadPlugin[] = "load-plugin"; | 612 const char kLoadPlugin[] = "load-plugin"; |
| 613 | 613 |
| 614 // Logs GPU blacklist decisions when enforcing blacklist rules. | |
| 615 const char kLogGpuBlacklistDecisions[] = "log-gpu-blacklist-decisions"; | |
|
Zhenyao Mo
2013/08/27 22:50:41
kLogGpuControlListDecisions and "log-gpu-control-l
gab
2013/08/28 20:20:39
Done.
| |
| 616 | |
| 614 // Sets the minimum log level. Valid values are from 0 to 3: | 617 // Sets the minimum log level. Valid values are from 0 to 3: |
| 615 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 618 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 616 const char kLoggingLevel[] = "log-level"; | 619 const char kLoggingLevel[] = "log-level"; |
| 617 | 620 |
| 618 // Enables displaying net log events on the command line, or writing the events | 621 // Enables displaying net log events on the command line, or writing the events |
| 619 // to a separate file if a file name is given. | 622 // to a separate file if a file name is given. |
| 620 const char kLogNetLog[] = "log-net-log"; | 623 const char kLogNetLog[] = "log-net-log"; |
| 621 | 624 |
| 622 // Make plugin processes log their sent and received messages to VLOG(1). | 625 // Make plugin processes log their sent and received messages to VLOG(1). |
| 623 const char kLogPluginMessages[] = "log-plugin-messages"; | 626 const char kLogPluginMessages[] = "log-plugin-messages"; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 751 // | 754 // |
| 752 // Unlike --enable-strict-site-isolation (which allows cross-site iframes), | 755 // Unlike --enable-strict-site-isolation (which allows cross-site iframes), |
| 753 // this flag blocks cross-site documents even in iframes, until out-of-process | 756 // this flag blocks cross-site documents even in iframes, until out-of-process |
| 754 // iframe support is available. Cross-site network requests do attach the | 757 // iframe support is available. Cross-site network requests do attach the |
| 755 // normal set of cookies, but a renderer process is only allowed to view or | 758 // normal set of cookies, but a renderer process is only allowed to view or |
| 756 // modify cookies for its own site (via JavaScript). | 759 // modify cookies for its own site (via JavaScript). |
| 757 // TODO(irobert): Implement the cross-site document blocking in | 760 // TODO(irobert): Implement the cross-site document blocking in |
| 758 // http://crbug.com/159215. | 761 // http://crbug.com/159215. |
| 759 const char kSitePerProcess[] = "site-per-process"; | 762 const char kSitePerProcess[] = "site-per-process"; |
| 760 | 763 |
| 761 // Skip gpu info collection, blacklist loading, and blacklist auto-update | |
| 762 // scheduling at browser startup time. | |
| 763 // Therefore, all GPU features are available, and about:gpu page shows empty | |
| 764 // content. The switch is intended only for tests. | |
| 765 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; | |
| 766 | |
| 767 // Specifies the request key for the continuous speech recognition webservice. | 764 // Specifies the request key for the continuous speech recognition webservice. |
| 768 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; | 765 const char kSpeechRecognitionWebserviceKey[] = "speech-service-key"; |
| 769 | 766 |
| 770 // Specifies if the |StatsCollectionController| needs to be bound in the | 767 // Specifies if the |StatsCollectionController| needs to be bound in the |
| 771 // renderer. This binding happens on per-frame basis and hence can potentially | 768 // renderer. This binding happens on per-frame basis and hence can potentially |
| 772 // be a performance bottleneck. One should only enable it when running a test | 769 // be a performance bottleneck. One should only enable it when running a test |
| 773 // that needs to access the provided statistics. | 770 // that needs to access the provided statistics. |
| 774 const char kStatsCollectionController[] = | 771 const char kStatsCollectionController[] = |
| 775 "enable-stats-collection-bindings"; | 772 "enable-stats-collection-bindings"; |
| 776 | 773 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 943 #endif | 940 #endif |
| 944 | 941 |
| 945 #if defined(USE_AURA) | 942 #if defined(USE_AURA) |
| 946 // Forces usage of the test compositor. Needed to run ui tests on bots. | 943 // Forces usage of the test compositor. Needed to run ui tests on bots. |
| 947 extern const char kTestCompositor[] = "test-compositor"; | 944 extern const char kTestCompositor[] = "test-compositor"; |
| 948 #endif | 945 #endif |
| 949 | 946 |
| 950 // Don't dump stuff here, follow the same order as the header. | 947 // Don't dump stuff here, follow the same order as the header. |
| 951 | 948 |
| 952 } // namespace switches | 949 } // namespace switches |
| OLD | NEW |