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

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

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 // Utilities for the SafeBrowsing DB code. 5 // Utilities for the SafeBrowsing DB code.
6 6
7 #ifndef COMPONENTS_SAFE_BROWSING_DB_UTIL_H_ 7 #ifndef COMPONENTS_SAFE_BROWSING_DB_UTIL_H_
8 #define COMPONENTS_SAFE_BROWSING_DB_UTIL_H_ 8 #define COMPONENTS_SAFE_BROWSING_DB_UTIL_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include <cstring> 12 #include <cstring>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/strings/string_piece.h" 17 #include "base/strings/string_piece.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "components/safe_browsing_db/safe_browsing_prefs.h" 19 #include "components/safe_browsing/common/safe_browsing_prefs.h"
20 #include "components/safe_browsing_db/v4_protocol_manager_util.h" 20 #include "components/safe_browsing_db/v4_protocol_manager_util.h"
21 21
22 class GURL; 22 class GURL;
23 23
24 namespace safe_browsing { 24 namespace safe_browsing {
25 25
26 // Metadata that indicates what kind of URL match this is. 26 // Metadata that indicates what kind of URL match this is.
27 enum class ThreatPatternType { 27 enum class ThreatPatternType {
28 NONE = 0, // Pattern type didn't appear in the metadata 28 NONE = 0, // Pattern type didn't appear in the metadata
29 MALWARE_LANDING = 1, // The match is a malware landing page 29 MALWARE_LANDING = 1, // The match is a malware landing page
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const std::string& client_name, 202 const std::string& client_name,
203 const std::string& version, 203 const std::string& version,
204 const std::string& additional_query, 204 const std::string& additional_query,
205 ExtendedReportingLevel reporting_level); 205 ExtendedReportingLevel reporting_level);
206 206
207 } // namespace ProtocolManagerHelper 207 } // namespace ProtocolManagerHelper
208 208
209 } // namespace safe_browsing 209 } // namespace safe_browsing
210 210
211 #endif // COMPONENTS_SAFE_BROWSING_DB_UTIL_H_ 211 #endif // COMPONENTS_SAFE_BROWSING_DB_UTIL_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/safe_browsing_prefs_unittest.cc ('k') | components/safe_browsing_db/v4_update_protocol_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698