Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2450993003: Componentize safe_browsing [1]: create component, move messages, constants and switches. (Closed)
Patch Set: address Nathan's comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "printing/features/features.h" 10 #include "printing/features/features.h"
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 842
843 // Indicates the last session should be restored on startup. This overrides the 843 // Indicates the last session should be restored on startup. This overrides the
844 // preferences value. 844 // preferences value.
845 const char kRestoreLastSession[] = "restore-last-session"; 845 const char kRestoreLastSession[] = "restore-last-session";
846 846
847 // Disable saving pages as HTML-only, disable saving pages as HTML Complete 847 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
848 // (with a directory of sub-resources). Enable only saving pages as MHTML. 848 // (with a directory of sub-resources). Enable only saving pages as MHTML.
849 // See http://crbug.com/120416 for how to remove this switch. 849 // See http://crbug.com/120416 for how to remove this switch.
850 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; 850 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
851 851
852 // If present, safebrowsing only performs update when
853 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
854 // This is used for testing only.
855 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
856
857 // TODO(lzheng): Remove this flag once the feature works fine
858 // (http://crbug.com/74848).
859 //
860 // Disables safebrowsing feature that checks download url and downloads
861 // content's hash to make sure the content are not malicious.
862 const char kSbDisableDownloadProtection[] =
863 "safebrowsing-disable-download-protection";
864
865 // Disables safebrowsing feature that checks for blacklisted extensions.
866 const char kSbDisableExtensionBlacklist[] =
867 "safebrowsing-disable-extension-blacklist";
868
869 // List of comma-separated sha256 hashes of executable files which the
870 // download-protection service should treat as "dangerous." For a file to
871 // show a warning, it also must be considered a dangerous filetype and not
872 // be whitelisted otherwise (by signature or URL) and must be on a supported
873 // OS. Hashes are in hex. This is used for manual testing when looking
874 // for ways to by-pass download protection.
875 const char kSbManualDownloadBlacklist[] =
876 "safebrowsing-manual-download-blacklist";
877
878 // Causes the process to run as a service process. 852 // Causes the process to run as a service process.
879 const char kServiceProcess[] = "service"; 853 const char kServiceProcess[] = "service";
880 854
881 // If true the app list will be shown. 855 // If true the app list will be shown.
882 const char kShowAppList[] = "show-app-list"; 856 const char kShowAppList[] = "show-app-list";
883 857
884 // Does not show an infobar when an extension attaches to a page using 858 // Does not show an infobar when an extension attaches to a page using
885 // chrome.debugger page. Required to attach to extension background pages. 859 // chrome.debugger page. Required to attach to extension background pages.
886 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; 860 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
887 861
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 1302
1329 // ----------------------------------------------------------------------------- 1303 // -----------------------------------------------------------------------------
1330 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1304 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1331 // 1305 //
1332 // You were going to just dump your switches here, weren't you? Instead, please 1306 // You were going to just dump your switches here, weren't you? Instead, please
1333 // put them in alphabetical order above, or in order inside the appropriate 1307 // put them in alphabetical order above, or in order inside the appropriate
1334 // ifdef at the bottom. The order should match the header. 1308 // ifdef at the bottom. The order should match the header.
1335 // ----------------------------------------------------------------------------- 1309 // -----------------------------------------------------------------------------
1336 1310
1337 } // namespace switches 1311 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698