OLD | NEW |
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 // Utilities for the SafeBrowsing code. | 5 // Utilities for the SafeBrowsing code. |
6 | 6 |
7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |
8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |
9 #pragma once | |
10 | 9 |
11 #include <cstring> | 10 #include <cstring> |
12 #include <deque> | 11 #include <deque> |
13 #include <string> | 12 #include <string> |
14 #include <vector> | 13 #include <vector> |
15 | 14 |
16 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
17 #include "chrome/browser/safe_browsing/chunk_range.h" | 16 #include "chrome/browser/safe_browsing/chunk_range.h" |
18 | 17 |
19 class GURL; | 18 class GURL; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 319 |
321 GURL GeneratePhishingReportUrl(const std::string& report_page, | 320 GURL GeneratePhishingReportUrl(const std::string& report_page, |
322 const std::string& url_to_report, | 321 const std::string& url_to_report, |
323 bool is_client_side_detection); | 322 bool is_client_side_detection); |
324 | 323 |
325 void StringToSBFullHash(const std::string& hash_in, SBFullHash* hash_out); | 324 void StringToSBFullHash(const std::string& hash_in, SBFullHash* hash_out); |
326 std::string SBFullHashToString(const SBFullHash& hash_out); | 325 std::string SBFullHashToString(const SBFullHash& hash_out); |
327 } // namespace safe_browsing_util | 326 } // namespace safe_browsing_util |
328 | 327 |
329 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ | 328 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ |
OLD | NEW |