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

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: fix compile Created 4 years 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
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/common_message_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 813
814 // Indicates the last session should be restored on startup. This overrides the 814 // Indicates the last session should be restored on startup. This overrides the
815 // preferences value. 815 // preferences value.
816 const char kRestoreLastSession[] = "restore-last-session"; 816 const char kRestoreLastSession[] = "restore-last-session";
817 817
818 // Disable saving pages as HTML-only, disable saving pages as HTML Complete 818 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
819 // (with a directory of sub-resources). Enable only saving pages as MHTML. 819 // (with a directory of sub-resources). Enable only saving pages as MHTML.
820 // See http://crbug.com/120416 for how to remove this switch. 820 // See http://crbug.com/120416 for how to remove this switch.
821 const char kSavePageAsMHTML[] = "save-page-as-mhtml"; 821 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
822 822
823 // If present, safebrowsing only performs update when
824 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
825 // This is used for testing only.
826 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
827
828 // TODO(lzheng): Remove this flag once the feature works fine
829 // (http://crbug.com/74848).
830 //
831 // Disables safebrowsing feature that checks download url and downloads
832 // content's hash to make sure the content are not malicious.
833 const char kSbDisableDownloadProtection[] =
834 "safebrowsing-disable-download-protection";
835
836 // Disables safebrowsing feature that checks for blacklisted extensions.
837 const char kSbDisableExtensionBlacklist[] =
838 "safebrowsing-disable-extension-blacklist";
839
840 // List of comma-separated sha256 hashes of executable files which the
841 // download-protection service should treat as "dangerous." For a file to
842 // show a warning, it also must be considered a dangerous filetype and not
843 // be whitelisted otherwise (by signature or URL) and must be on a supported
844 // OS. Hashes are in hex. This is used for manual testing when looking
845 // for ways to by-pass download protection.
846 const char kSbManualDownloadBlacklist[] =
847 "safebrowsing-manual-download-blacklist";
848
849 // Causes the process to run as a service process. 823 // Causes the process to run as a service process.
850 const char kServiceProcess[] = "service"; 824 const char kServiceProcess[] = "service";
851 825
852 // If true the app list will be shown. 826 // If true the app list will be shown.
853 const char kShowAppList[] = "show-app-list"; 827 const char kShowAppList[] = "show-app-list";
854 828
855 // Does not show an infobar when an extension attaches to a page using 829 // Does not show an infobar when an extension attaches to a page using
856 // chrome.debugger page. Required to attach to extension background pages. 830 // chrome.debugger page. Required to attach to extension background pages.
857 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api"; 831 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
858 832
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1286
1313 // ----------------------------------------------------------------------------- 1287 // -----------------------------------------------------------------------------
1314 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1288 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1315 // 1289 //
1316 // You were going to just dump your switches here, weren't you? Instead, please 1290 // You were going to just dump your switches here, weren't you? Instead, please
1317 // put them in alphabetical order above, or in order inside the appropriate 1291 // put them in alphabetical order above, or in order inside the appropriate
1318 // ifdef at the bottom. The order should match the header. 1292 // ifdef at the bottom. The order should match the header.
1319 // ----------------------------------------------------------------------------- 1293 // -----------------------------------------------------------------------------
1320 1294
1321 } // namespace switches 1295 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/common_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698