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 "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // unspecified. | 110 // unspecified. |
111 const char kCloudPrintFileType[] = "cloud-print-file-type"; | 111 const char kCloudPrintFileType[] = "cloud-print-file-type"; |
112 | 112 |
113 // Used with kCloudPrintFile to specify a title for the resulting print job. | 113 // Used with kCloudPrintFile to specify a title for the resulting print job. |
114 const char kCloudPrintJobTitle[] = "cloud-print-job-title"; | 114 const char kCloudPrintJobTitle[] = "cloud-print-job-title"; |
115 | 115 |
116 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting | 116 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting |
117 // print job. Defaults to null if unspecified. | 117 // print job. Defaults to null if unspecified. |
118 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket"; | 118 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket"; |
119 | 119 |
| 120 // Causes the process to run as a cloud print service process. |
| 121 const char kCloudPrintServiceProcess[] = "cloud-print-service"; |
| 122 |
120 // Setup cloud print proxy for provided printers. This does not start | 123 // Setup cloud print proxy for provided printers. This does not start |
121 // service or register proxy for autostart. | 124 // service or register proxy for autostart. |
122 const char kCloudPrintSetupProxy[] = "cloud-print-setup-proxy"; | 125 const char kCloudPrintSetupProxy[] = "cloud-print-setup-proxy"; |
123 | 126 |
124 // Comma-separated list of BrowserThreads that cause browser process to crash | 127 // Comma-separated list of BrowserThreads that cause browser process to crash |
125 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the | 128 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the |
126 // list of BrowserThreads that are supported. | 129 // list of BrowserThreads that are supported. |
127 // | 130 // |
128 // For example: | 131 // For example: |
129 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO | 132 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // Enables the benchmarking extensions. | 317 // Enables the benchmarking extensions. |
315 const char kEnableBenchmarking[] = "enable-benchmarking"; | 318 const char kEnableBenchmarking[] = "enable-benchmarking"; |
316 | 319 |
317 // Enables the multi-level undo system for bookmarks. | 320 // Enables the multi-level undo system for bookmarks. |
318 const char kEnableBookmarkUndo[] = "enable-bookmark-undo"; | 321 const char kEnableBookmarkUndo[] = "enable-bookmark-undo"; |
319 | 322 |
320 // Enables data volume counters in the Clear Browsing Data dialog. | 323 // Enables data volume counters in the Clear Browsing Data dialog. |
321 const char kEnableClearBrowsingDataCounters[] = | 324 const char kEnableClearBrowsingDataCounters[] = |
322 "enable-clear-browsing-data-counters"; | 325 "enable-clear-browsing-data-counters"; |
323 | 326 |
324 // This applies only when the process type is "service". Enables the Cloud | 327 // This applies only when the process type is "cloud-print-service". Enables the |
325 // Print Proxy component within the service process. | 328 // Cloud Print Proxy component within the service process. |
326 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; | 329 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; |
327 | 330 |
328 // Enable device discovery notifications. | 331 // Enable device discovery notifications. |
329 const char kEnableDeviceDiscoveryNotifications[] = | 332 const char kEnableDeviceDiscoveryNotifications[] = |
330 "enable-device-discovery-notifications"; | 333 "enable-device-discovery-notifications"; |
331 | 334 |
332 // If true devtools experimental settings are enabled. | 335 // If true devtools experimental settings are enabled. |
333 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments"; | 336 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments"; |
334 | 337 |
335 // Enables Domain Reliability Monitoring. | 338 // Enables Domain Reliability Monitoring. |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 | 765 |
763 // Indicates the last session should be restored on startup. This overrides the | 766 // Indicates the last session should be restored on startup. This overrides the |
764 // preferences value. | 767 // preferences value. |
765 const char kRestoreLastSession[] = "restore-last-session"; | 768 const char kRestoreLastSession[] = "restore-last-session"; |
766 | 769 |
767 // Disable saving pages as HTML-only, disable saving pages as HTML Complete | 770 // Disable saving pages as HTML-only, disable saving pages as HTML Complete |
768 // (with a directory of sub-resources). Enable only saving pages as MHTML. | 771 // (with a directory of sub-resources). Enable only saving pages as MHTML. |
769 // See http://crbug.com/120416 for how to remove this switch. | 772 // See http://crbug.com/120416 for how to remove this switch. |
770 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; | 773 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; |
771 | 774 |
772 // Causes the process to run as a service process. | |
773 const char kServiceProcess[] = "service"; | |
774 | |
775 // If true the app list will be shown. | 775 // If true the app list will be shown. |
776 const char kShowAppList[] = "show-app-list"; | 776 const char kShowAppList[] = "show-app-list"; |
777 | 777 |
778 // Does not show an infobar when an extension attaches to a page using | 778 // Does not show an infobar when an extension attaches to a page using |
779 // chrome.debugger page. Required to attach to extension background pages. | 779 // chrome.debugger page. Required to attach to extension background pages. |
780 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; | 780 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; |
781 | 781 |
782 // Causes Chrome to launch without opening any windows by default. Useful if | 782 // Causes Chrome to launch without opening any windows by default. Useful if |
783 // one wishes to use Chrome as an ash server. | 783 // one wishes to use Chrome as an ash server. |
784 const char kSilentLaunch[] = "silent-launch"; | 784 const char kSilentLaunch[] = "silent-launch"; |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 | 1186 |
1187 // ----------------------------------------------------------------------------- | 1187 // ----------------------------------------------------------------------------- |
1188 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1188 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
1189 // | 1189 // |
1190 // You were going to just dump your switches here, weren't you? Instead, please | 1190 // You were going to just dump your switches here, weren't you? Instead, please |
1191 // put them in alphabetical order above, or in order inside the appropriate | 1191 // put them in alphabetical order above, or in order inside the appropriate |
1192 // ifdef at the bottom. The order should match the header. | 1192 // ifdef at the bottom. The order should match the header. |
1193 // ----------------------------------------------------------------------------- | 1193 // ----------------------------------------------------------------------------- |
1194 | 1194 |
1195 } // namespace switches | 1195 } // namespace switches |
OLD | NEW |