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

Side by Side Diff: pdf/document_loader.h

Issue 1587083004: PDF: Use a vector instead of a list in DocumentLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | pdf/document_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PDF_DOCUMENT_LOADER_H_ 5 #ifndef PDF_DOCUMENT_LOADER_H_
6 #define PDF_DOCUMENT_LOADER_H_ 6 #define PDF_DOCUMENT_LOADER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 size_t current_request_extended_size_; 121 size_t current_request_extended_size_;
122 char buffer_[kDefaultRequestSize]; 122 char buffer_[kDefaultRequestSize];
123 uint32_t current_pos_; 123 uint32_t current_pos_;
124 uint32_t current_chunk_size_; 124 uint32_t current_chunk_size_;
125 uint32_t current_chunk_read_; 125 uint32_t current_chunk_read_;
126 uint32_t document_size_; 126 uint32_t document_size_;
127 bool header_request_; 127 bool header_request_;
128 bool is_multipart_; 128 bool is_multipart_;
129 std::string multipart_boundary_; 129 std::string multipart_boundary_;
130 uint32_t requests_count_; 130 uint32_t requests_count_;
131 std::list<std::vector<unsigned char> > chunk_buffer_; 131 std::vector<std::vector<unsigned char> > chunk_buffer_;
132 }; 132 };
133 133
134 } // namespace chrome_pdf 134 } // namespace chrome_pdf
135 135
136 #endif // PDF_DOCUMENT_LOADER_H_ 136 #endif // PDF_DOCUMENT_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/document_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698