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

Side by Side Diff: components/subresource_filter/core/common/activation_list.h

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)
Patch Set: only changes specific to this cl Created 3 years, 9 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_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "components/safe_browsing_db/util.h" 10 #include "components/safe_browsing_db/util.h"
11 11
12 namespace subresource_filter { 12 namespace subresource_filter {
13 13
14 enum class ActivationList { 14 enum class ActivationList {
15 NONE, 15 NONE,
16 SOCIAL_ENG_ADS_INTERSTITIAL, 16 SOCIAL_ENG_ADS_INTERSTITIAL,
17 PHISHING_INTERSTITIAL, 17 PHISHING_INTERSTITIAL,
18 LAST = PHISHING_INTERSTITIAL, 18 SUBRESOURCE_FILTER,
19 LAST = SUBRESOURCE_FILTER,
19 }; 20 };
20 21
21 // For logging use only. 22 // For logging use only.
22 std::ostream& operator<<(std::ostream& os, const ActivationList& type); 23 std::ostream& operator<<(std::ostream& os, const ActivationList& type);
23 24
24 ActivationList GetListForThreatTypeAndMetadata( 25 ActivationList GetListForThreatTypeAndMetadata(
25 safe_browsing::SBThreatType threat_type, 26 safe_browsing::SBThreatType threat_type,
26 safe_browsing::ThreatPatternType threat_type_metadata); 27 safe_browsing::ThreatPatternType threat_type_metadata);
27 28
28 } // namespace subresource_filter 29 } // namespace subresource_filter
29 30
30 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_ 31 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_COMMON_ACTIVATION_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698