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

Side by Side Diff: components/safe_browsing_db/v4_feature_list.h

Issue 2675063002: Browser tests for using the new SafeBrowsing protocol (v4) (Closed)
Patch Set: shess@'s review Created 3 years, 10 months 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
7 7
8 namespace safe_browsing { 8 namespace safe_browsing {
9 9
10 // Exposes methods to check whether a particular feature has been enabled 10 // Exposes methods to check whether a particular feature has been enabled
11 // through Finch. 11 // through Finch.
12 namespace V4FeatureList { 12 namespace V4FeatureList {
13 13
14 extern const base::Feature kLocalDatabaseManagerEnabled;
Nathan Parker 2017/02/08 01:22:54 Do these need to be accessed outside this .cc? Wh
15 extern const base::Feature kV4OnlyEnabled;
16
14 // Is the PVer4 database manager enabled? Should be true if either of those 17 // Is the PVer4 database manager enabled? Should be true if either of those
15 // below are true. 18 // below are true.
16 bool IsLocalDatabaseManagerEnabled(); 19 bool IsLocalDatabaseManagerEnabled();
17 20
18 // Is the PVer4 database being checked for resource reputation? If this returns 21 // Is the PVer4 database being checked for resource reputation? If this returns
19 // true, use PVer4 database for CheckBrowseUrl, otherwise use PVer3. 22 // true, use PVer4 database for CheckBrowseUrl, otherwise use PVer3.
20 bool IsV4HybridEnabled(); 23 bool IsV4HybridEnabled();
21 24
22 // Is only the PVer4 database being checked for resource reputation? If this 25 // Is only the PVer4 database being checked for resource reputation? If this
23 // returns true, use PVer4 database for all SafeBrowsing operations, and don't 26 // returns true, use PVer4 database for all SafeBrowsing operations, and don't
24 // update the PVer3 database at all. This is the launch configuration. 27 // update the PVer3 database at all. This is the launch configuration.
25 bool IsV4OnlyEnabled(); 28 bool IsV4OnlyEnabled();
26 29
27 } // namespace V4FeatureList 30 } // namespace V4FeatureList
28 31
29 } // namespace safe_browsing 32 } // namespace safe_browsing
30 33
31 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 34 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698