From 4f24e87d4c051571744bab377cc356bdef093701 Mon Sep 17 00:00:00 2001 From: "paulg@google.com" Date: Wed, 8 Oct 2008 02:14:08 +0000 Subject: Make chunk ranges searchable. Review URL: http://codereview.chromium.org/5645 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2990 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/safe_browsing/chunk_range.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/safe_browsing/chunk_range.h') diff --git a/chrome/browser/safe_browsing/chunk_range.h b/chrome/browser/safe_browsing/chunk_range.h index d547dea..a9969b1 100644 --- a/chrome/browser/safe_browsing/chunk_range.h +++ b/chrome/browser/safe_browsing/chunk_range.h @@ -60,5 +60,7 @@ void RangesToString(const std::vector& ranges, bool StringToRanges(const std::string& input, std::vector* ranges); +// Tests if a chunk number is contained a sorted vector of ChunkRanges. +bool IsChunkInRange(int chunk_number, const std::vector& ranges); #endif // CHROME_BROWSER_SAFE_BROWSING_CHUNK_RANGE_H_ -- cgit v1.1