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