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