OLD | NEW |
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> |
| 9 #include <stdint.h> |
| 10 |
8 #include <list> | 11 #include <list> |
9 #include <string> | 12 #include <string> |
10 #include <utility> | 13 #include <utility> |
11 #include <vector> | 14 #include <vector> |
12 | 15 |
13 #include "base/basictypes.h" | |
14 #include "pdf/chunk_stream.h" | 16 #include "pdf/chunk_stream.h" |
15 #include "ppapi/cpp/url_loader.h" | 17 #include "ppapi/cpp/url_loader.h" |
16 #include "ppapi/utility/completion_callback_factory.h" | 18 #include "ppapi/utility/completion_callback_factory.h" |
17 | 19 |
18 namespace chrome_pdf { | 20 namespace chrome_pdf { |
19 | 21 |
20 class DocumentLoader { | 22 class DocumentLoader { |
21 public: | 23 public: |
22 class Client { | 24 class Client { |
23 public: | 25 public: |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 bool header_request_; | 127 bool header_request_; |
126 bool is_multipart_; | 128 bool is_multipart_; |
127 std::string multipart_boundary_; | 129 std::string multipart_boundary_; |
128 uint32_t requests_count_; | 130 uint32_t requests_count_; |
129 std::list<std::vector<unsigned char> > chunk_buffer_; | 131 std::list<std::vector<unsigned char> > chunk_buffer_; |
130 }; | 132 }; |
131 | 133 |
132 } // namespace chrome_pdf | 134 } // namespace chrome_pdf |
133 | 135 |
134 #endif // PDF_DOCUMENT_LOADER_H_ | 136 #endif // PDF_DOCUMENT_LOADER_H_ |
OLD | NEW |