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

Unified Diff: pdf/chunk_stream.h

Issue 2911853002: Refactor PDF ChunkStream and DocumentLoader code. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/chunk_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/chunk_stream.h
diff --git a/pdf/chunk_stream.h b/pdf/chunk_stream.h
index e669bb7727568ece9e3bb7ca22c795937981feea..762bc3925dd889707e22630df3551ba09c3cce44 100644
--- a/pdf/chunk_stream.h
+++ b/pdf/chunk_stream.h
@@ -41,9 +41,12 @@ class ChunkStream {
size_t GetLastMissingByteInInterval(size_t offset) const;
private:
+ std::map<size_t, size_t>::const_iterator GetStartChunk(size_t offset) const;
+
std::vector<unsigned char> data_;
- // Pair, first - begining of the chunk, second - size of the chunk.
+ // Key: offset of the chunk.
+ // Value: size of the chunk.
std::map<size_t, size_t> chunks_;
size_t stream_size_;
« no previous file with comments | « no previous file | pdf/chunk_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698