Chromium Code Reviews| Index: components/safe_browsing_db/v4_feature_list.h |
| diff --git a/components/safe_browsing_db/v4_feature_list.h b/components/safe_browsing_db/v4_feature_list.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..76e43f43c422c6f4f5064ae3ea1a059146b24aef |
| --- /dev/null |
| +++ b/components/safe_browsing_db/v4_feature_list.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ |
| +#define COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ |
| + |
| +namespace safe_browsing { |
| + |
| +// Exposes methods to check whether a particular feature has been enabled |
| +// through Finch. |
| +class V4FeatureList { |
|
Nathan Parker
2016/09/28 22:25:55
Rather than a class, you can just use a namespace.
vakh (use Gerrit instead)
2016/09/28 23:00:01
Good idea. Didn't think of that. Done.
|
| + public: |
| + // Is the Pver4 database manager enabled? |
| + static bool IsLocalDatabaseManagerEnabled(); |
| + |
| + // Is the Pver4 database manager doing resource checks in paralled with PVer3? |
| + static bool IsParallelCheckEnabled(); |
| + |
| + private: |
| + V4FeatureList(); |
| +}; |
| + |
| +} // namespace safe_browsing |
| + |
| +#endif // COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ |