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

Side by Side Diff: chrome/browser/safe_browsing/protocol_parser.h

Issue 1824933002: include safe_browsing_db/util.h directly in files not related to chunking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_prot_mgr_basic_tests
Patch Set: git fetch && git rebase Created 4 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 (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 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_
7 7
8 // Parsers and formatters for SafeBrowsing v3.0 protocol: 8 // Parsers and formatters for SafeBrowsing v3.0 protocol:
9 // https://developers.google.com/safe-browsing/developers_guide_v3 9 // https://developers.google.com/safe-browsing/developers_guide_v3
10 // 10 //
11 // The quoted references are with respect to that document. 11 // The quoted references are with respect to that document.
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 18 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
19 #include "components/safe_browsing_db/util.h"
19 20
20 namespace base { 21 namespace base {
21 class TimeDelta; 22 class TimeDelta;
22 }; 23 };
23 24
24 namespace safe_browsing { 25 namespace safe_browsing {
25 26
26 // TODO(shess): Maybe the data/len pairs could be productively replaced with 27 // TODO(shess): Maybe the data/len pairs could be productively replaced with
27 // const base::StringPiece&. 28 // const base::StringPiece&.
28 29
(...skipping 27 matching lines...) Expand all
56 57
57 // Convert prefix hashes into a "HTTP Request for Full-Length Hashes" body. 58 // Convert prefix hashes into a "HTTP Request for Full-Length Hashes" body.
58 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes); 59 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes);
59 60
60 // Format the LIST part of "HTTP Request for Data" body. 61 // Format the LIST part of "HTTP Request for Data" body.
61 std::string FormatList(const SBListChunkRanges& list); 62 std::string FormatList(const SBListChunkRanges& list);
62 63
63 } // namespace safe_browsing 64 } // namespace safe_browsing
64 65
65 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_ 66 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_PARSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager_unittest.cc ('k') | chrome/browser/safe_browsing/protocol_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698