| 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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // is terminated. | 37 // is terminated. |
| 38 const char kAuditHandles[] = "enable-handle-auditing"; | 38 const char kAuditHandles[] = "enable-handle-auditing"; |
| 39 | 39 |
| 40 // Blacklist the GPU for accelerated compositing. | 40 // Blacklist the GPU for accelerated compositing. |
| 41 const char kBlacklistAcceleratedCompositing[] = | 41 const char kBlacklistAcceleratedCompositing[] = |
| 42 "blacklist-accelerated-compositing"; | 42 "blacklist-accelerated-compositing"; |
| 43 | 43 |
| 44 // Blacklist the GPU for WebGL. | 44 // Blacklist the GPU for WebGL. |
| 45 const char kBlacklistWebGL[] = "blacklist-webgl"; | 45 const char kBlacklistWebGL[] = "blacklist-webgl"; |
| 46 | 46 |
| 47 // Choose which logging channels in blink platform to activate. See |
| 48 // Logging.cpp in blink's Source/platform for a list of available channels. |
| 49 const char kBlinkPlatformLogChannels[] = "blink-platform-log-channels"; |
| 50 |
| 47 // Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in | 51 // Block cross-site documents (i.e., HTML/XML/JSON) from being loaded in |
| 48 // subresources when a document is not supposed to read them. This will later | 52 // subresources when a document is not supposed to read them. This will later |
| 49 // allow us to block them from the entire renderer process when site isolation | 53 // allow us to block them from the entire renderer process when site isolation |
| 50 // is enabled. | 54 // is enabled. |
| 51 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents"; | 55 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents"; |
| 52 | 56 |
| 53 // Causes the browser process to throw an assertion on startup. | 57 // Causes the browser process to throw an assertion on startup. |
| 54 const char kBrowserAssertTest[] = "assert-test"; | 58 const char kBrowserAssertTest[] = "assert-test"; |
| 55 | 59 |
| 56 // Causes the browser process to crash on startup. | 60 // Causes the browser process to crash on startup. |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 const char kUtilityProcessAllowedDir[] = "utility-allowed-dir"; | 955 const char kUtilityProcessAllowedDir[] = "utility-allowed-dir"; |
| 952 | 956 |
| 953 // Allows MDns to access network in sandboxed process. | 957 // Allows MDns to access network in sandboxed process. |
| 954 const char kUtilityProcessEnableMDns[] = "utility-enable-mdns"; | 958 const char kUtilityProcessEnableMDns[] = "utility-enable-mdns"; |
| 955 | 959 |
| 956 // Will add kWaitForDebugger to every child processes. If a value is passed, it | 960 // Will add kWaitForDebugger to every child processes. If a value is passed, it |
| 957 // will be used as a filter to determine if the child process should have the | 961 // will be used as a filter to determine if the child process should have the |
| 958 // kWaitForDebugger flag passed on or not. | 962 // kWaitForDebugger flag passed on or not. |
| 959 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; | 963 const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; |
| 960 | 964 |
| 961 // Choose which logging channels in WebCore to activate. See | |
| 962 // Logging.cpp in WebKit's WebCore for a list of available channels. | |
| 963 const char kWebCoreLogChannels[] = "webcore-log-channels"; | |
| 964 | |
| 965 // Overrides the amount of shared memory the webgl command buffer allocates | 965 // Overrides the amount of shared memory the webgl command buffer allocates |
| 966 const char kWebGLCommandBufferSizeKb[] = "webgl-command-buffer-size-kb"; | 966 const char kWebGLCommandBufferSizeKb[] = "webgl-command-buffer-size-kb"; |
| 967 | 967 |
| 968 // Causes the process to run as a worker subprocess. | 968 // Causes the process to run as a worker subprocess. |
| 969 const char kWorkerProcess[] = "worker"; | 969 const char kWorkerProcess[] = "worker"; |
| 970 | 970 |
| 971 // The prefix used when starting the zygote process. (i.e. 'gdb --args') | 971 // The prefix used when starting the zygote process. (i.e. 'gdb --args') |
| 972 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; | 972 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; |
| 973 | 973 |
| 974 // Causes the process to run as a renderer zygote. | 974 // Causes the process to run as a renderer zygote. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 #endif | 1062 #endif |
| 1063 | 1063 |
| 1064 #if defined(OS_POSIX) | 1064 #if defined(OS_POSIX) |
| 1065 // Causes the child processes to cleanly exit via calling exit(). | 1065 // Causes the child processes to cleanly exit via calling exit(). |
| 1066 const char kChildCleanExit[] = "child-clean-exit"; | 1066 const char kChildCleanExit[] = "child-clean-exit"; |
| 1067 #endif | 1067 #endif |
| 1068 | 1068 |
| 1069 // Don't dump stuff here, follow the same order as the header. | 1069 // Don't dump stuff here, follow the same order as the header. |
| 1070 | 1070 |
| 1071 } // namespace switches | 1071 } // namespace switches |
| OLD | NEW |