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

Side by Side Diff: pdf/document_loader.h

Issue 301033003: Removed unnecessary map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 05/28/2014 22:09:12.72 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 unified diff | Download patch | Annotate | Revision Log
« 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 <list> 8 #include <list>
9 #include <map>
10 #include <string> 9 #include <string>
11 #include <vector> 10 #include <vector>
12 11
13 #include "base/basictypes.h" 12 #include "base/basictypes.h"
14 #include "pdf/chunk_stream.h" 13 #include "pdf/chunk_stream.h"
15 #include "ppapi/cpp/url_loader.h" 14 #include "ppapi/cpp/url_loader.h"
16 #include "ppapi/utility/completion_callback_factory.h" 15 #include "ppapi/utility/completion_callback_factory.h"
17 16
18 #define kDefaultRequestSize 32768u 17 #define kDefaultRequestSize 32768u
19 18
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 PendingRequests pending_requests_; 109 PendingRequests pending_requests_;
111 char buffer_[kDefaultRequestSize]; 110 char buffer_[kDefaultRequestSize];
112 uint32 current_pos_; 111 uint32 current_pos_;
113 uint32 current_chunk_size_; 112 uint32 current_chunk_size_;
114 uint32 current_chunk_read_; 113 uint32 current_chunk_read_;
115 uint32 document_size_; 114 uint32 document_size_;
116 bool header_request_; 115 bool header_request_;
117 bool is_multipart_; 116 bool is_multipart_;
118 std::string multipart_boundary_; 117 std::string multipart_boundary_;
119 uint32 requests_count_; 118 uint32 requests_count_;
120 std::map<uint32, uint32> chunk_size_table_;
121 std::list<std::vector<unsigned char> > chunk_buffer_; 119 std::list<std::vector<unsigned char> > chunk_buffer_;
122 }; 120 };
123 121
124 } // namespace chrome_pdf 122 } // namespace chrome_pdf
125 123
126 #endif // PDF_DOCUMENT_LOADER_H_ 124 #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