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

Unified Diff: pdf/chunk_stream.h

Issue 317803005: Add function to document_loader to get PDF as pp::FileRef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « .gitignore ('k') | pdf/document_loader.h » ('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 fac1ec644de367c60a8a57c18eb7a15395292e96..29fe68bf26129f06e7b76e715415d85bb7512e0c 100644
--- a/pdf/chunk_stream.h
+++ b/pdf/chunk_stream.h
@@ -36,6 +36,8 @@ class ChunkStream {
size_t GetLastByteBefore(size_t offset) const;
size_t GetFirstByteAfter(size_t offset) const;
+ const std::vector<unsigned char>& data() const { return data_; }
+
private:
std::vector<unsigned char> data_;
« no previous file with comments | « .gitignore ('k') | pdf/document_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698