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 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Choose which logging channels in blink platform to activate. See | 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. | 48 // Logging.cpp in blink's Source/platform for a list of available channels. |
49 const char kBlinkPlatformLogChannels[] = "blink-platform-log-channels"; | 49 const char kBlinkPlatformLogChannels[] = "blink-platform-log-channels"; |
50 | 50 |
51 // 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 |
52 // 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 |
53 // 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 |
54 // is enabled. | 54 // is enabled. |
55 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents"; | 55 const char kBlockCrossSiteDocuments[] = "block-cross-site-documents"; |
56 | 56 |
57 // Causes the browser process to throw an assertion on startup. | |
58 const char kBrowserAssertTest[] = "assert-test"; | |
59 | |
60 // Causes the browser process to crash on startup. | 57 // Causes the browser process to crash on startup. |
61 const char kBrowserCrashTest[] = "crash-test"; | 58 const char kBrowserCrashTest[] = "crash-test"; |
62 | 59 |
63 // Path to the exe to run for the renderer and plugin subprocesses. | 60 // Path to the exe to run for the renderer and plugin subprocesses. |
64 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 61 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
65 | 62 |
66 // Dumps extra logging about plugin loading to the log file. | 63 // Dumps extra logging about plugin loading to the log file. |
67 const char kDebugPluginLoading[] = "debug-plugin-loading"; | 64 const char kDebugPluginLoading[] = "debug-plugin-loading"; |
68 | 65 |
69 // Sets the tile size used by composited layers. | 66 // Sets the tile size used by composited layers. |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 966 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
970 return false; | 967 return false; |
971 // Default. | 968 // Default. |
972 return group_name == "Enabled"; | 969 return group_name == "Enabled"; |
973 } | 970 } |
974 #endif | 971 #endif |
975 | 972 |
976 // Don't dump stuff here, follow the same order as the header. | 973 // Don't dump stuff here, follow the same order as the header. |
977 | 974 |
978 } // namespace switches | 975 } // namespace switches |
OLD | NEW |