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

Side by Side Diff: storage/browser/blob/blob_reader.h

Issue 2389583002: Remove stl_util's deletion functions from storage/. (Closed)
Patch Set: nits Created 4 years, 2 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 | storage/browser/blob/blob_reader.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 STORAGE_BROWSER_BLOB_BLOB_READER_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_READER_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_READER_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_READER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 int net_error_; 207 int net_error_;
208 bool item_list_populated_ = false; 208 bool item_list_populated_ = false;
209 std::vector<uint64_t> item_length_list_; 209 std::vector<uint64_t> item_length_list_;
210 210
211 scoped_refptr<net::DrainableIOBuffer> read_buf_; 211 scoped_refptr<net::DrainableIOBuffer> read_buf_;
212 212
213 bool total_size_calculated_ = false; 213 bool total_size_calculated_ = false;
214 uint64_t total_size_ = 0; 214 uint64_t total_size_ = 0;
215 uint64_t remaining_bytes_ = 0; 215 uint64_t remaining_bytes_ = 0;
216 size_t pending_get_file_info_count_ = 0; 216 size_t pending_get_file_info_count_ = 0;
217 std::map<size_t, FileStreamReader*> index_to_reader_; 217 std::map<size_t, std::unique_ptr<FileStreamReader>> index_to_reader_;
218 size_t current_item_index_ = 0; 218 size_t current_item_index_ = 0;
219 uint64_t current_item_offset_ = 0; 219 uint64_t current_item_offset_ = 0;
220 220
221 bool io_pending_ = false; 221 bool io_pending_ = false;
222 222
223 net::CompletionCallback size_callback_; 223 net::CompletionCallback size_callback_;
224 net::CompletionCallback read_callback_; 224 net::CompletionCallback read_callback_;
225 225
226 base::WeakPtrFactory<BlobReader> weak_factory_; 226 base::WeakPtrFactory<BlobReader> weak_factory_;
227 DISALLOW_COPY_AND_ASSIGN(BlobReader); 227 DISALLOW_COPY_AND_ASSIGN(BlobReader);
228 }; 228 };
229 229
230 } // namespace storage 230 } // namespace storage
231 #endif // STORAGE_BROWSER_BLOB_BLOB_READER_H_ 231 #endif // STORAGE_BROWSER_BLOB_BLOB_READER_H_
OLDNEW
« no previous file with comments | « no previous file | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698