diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 02:14:08 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 02:14:08 +0000 |
commit | 4f24e87d4c051571744bab377cc356bdef093701 (patch) | |
tree | 7da8e990e10f95aabf6cf73670971bc654e3c214 /chrome/browser/safe_browsing/chunk_range.h | |
parent | 6bf766924e2e8dc08ccd248bc128bd6fe29297cd (diff) | |
download | chromium_src-4f24e87d4c051571744bab377cc356bdef093701.zip chromium_src-4f24e87d4c051571744bab377cc356bdef093701.tar.gz chromium_src-4f24e87d4c051571744bab377cc356bdef093701.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/safe_browsing/chunk_range.h')
-rw-r--r-- | chrome/browser/safe_browsing/chunk_range.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<ChunkRange>& ranges, bool StringToRanges(const std::string& input, std::vector<ChunkRange>* ranges); +// Tests if a chunk number is contained a sorted vector of ChunkRanges. +bool IsChunkInRange(int chunk_number, const std::vector<ChunkRange>& ranges); #endif // CHROME_BROWSER_SAFE_BROWSING_CHUNK_RANGE_H_ |