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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Path to the exe to run for the renderer and plugin subprocesses. | 64 // Path to the exe to run for the renderer and plugin subprocesses. |
65 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 65 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
66 | 66 |
67 // Dumps extra logging about plugin loading to the log file. | 67 // Dumps extra logging about plugin loading to the log file. |
68 const char kDebugPluginLoading[] = "debug-plugin-loading"; | 68 const char kDebugPluginLoading[] = "debug-plugin-loading"; |
69 | 69 |
70 // Sets the tile size used by composited layers. | 70 // Sets the tile size used by composited layers. |
71 const char kDefaultTileWidth[] = "default-tile-width"; | 71 const char kDefaultTileWidth[] = "default-tile-width"; |
72 const char kDefaultTileHeight[] = "default-tile-height"; | 72 const char kDefaultTileHeight[] = "default-tile-height"; |
73 | 73 |
| 74 // Handles URL requests by NPAPI plugins directly through the browser, instead |
| 75 // of going through the renderer. This will be the new default, but it's not |
| 76 // turned on initially until we do more testing. |
| 77 const char kDirectNPAPIRequests[] = "direct-npapi-requests"; |
| 78 |
74 // Disable antialiasing on 2d canvas. | 79 // Disable antialiasing on 2d canvas. |
75 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; | 80 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; |
76 | 81 |
77 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 82 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
78 // This is controlled by policy and is kept separate from the other | 83 // This is controlled by policy and is kept separate from the other |
79 // enable/disable switches to avoid accidentally regressing the policy | 84 // enable/disable switches to avoid accidentally regressing the policy |
80 // support for controlling access to these APIs. | 85 // support for controlling access to these APIs. |
81 const char kDisable3DAPIs[] = "disable-3d-apis"; | 86 const char kDisable3DAPIs[] = "disable-3d-apis"; |
82 | 87 |
83 // Disable gpu-accelerated 2d canvas. | 88 // Disable gpu-accelerated 2d canvas. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Disables delegated renderer. | 142 // Disables delegated renderer. |
138 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; | 143 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; |
139 | 144 |
140 // Disables desktop notifications (default enabled on windows). | 145 // Disables desktop notifications (default enabled on windows). |
141 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; | 146 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; |
142 | 147 |
143 // Disables experimental navigator content utils implementation. | 148 // Disables experimental navigator content utils implementation. |
144 const char kDisableNavigatorContentUtils[] = | 149 const char kDisableNavigatorContentUtils[] = |
145 "disable-navigator-content-utils"; | 150 "disable-navigator-content-utils"; |
146 | 151 |
147 // Handles URL requests by NPAPI plugins through the renderer. | |
148 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; | |
149 | |
150 // Disable the per-domain blocking for 3D APIs after GPU reset. | 152 // Disable the per-domain blocking for 3D APIs after GPU reset. |
151 // This switch is intended only for tests. | 153 // This switch is intended only for tests. |
152 extern const char kDisableDomainBlockingFor3DAPIs[] = | 154 extern const char kDisableDomainBlockingFor3DAPIs[] = |
153 "disable-domain-blocking-for-3d-apis"; | 155 "disable-domain-blocking-for-3d-apis"; |
154 | 156 |
155 // Disable experimental WebGL support. | 157 // Disable experimental WebGL support. |
156 const char kDisableExperimentalWebGL[] = "disable-webgl"; | 158 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
157 | 159 |
158 // Disable the fast text autosizing implementation. | 160 // Disable the fast text autosizing implementation. |
159 const char kDisableFastTextAutosizing[] = "disable-fast-text-autosizing"; | 161 const char kDisableFastTextAutosizing[] = "disable-fast-text-autosizing"; |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 #endif | 1054 #endif |
1053 | 1055 |
1054 #if defined(OS_POSIX) | 1056 #if defined(OS_POSIX) |
1055 // Causes the child processes to cleanly exit via calling exit(). | 1057 // Causes the child processes to cleanly exit via calling exit(). |
1056 const char kChildCleanExit[] = "child-clean-exit"; | 1058 const char kChildCleanExit[] = "child-clean-exit"; |
1057 #endif | 1059 #endif |
1058 | 1060 |
1059 // Don't dump stuff here, follow the same order as the header. | 1061 // Don't dump stuff here, follow the same order as the header. |
1060 | 1062 |
1061 } // namespace switches | 1063 } // namespace switches |
OLD | NEW |