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

Side by Side Diff: content/browser/download/download_file_impl.h

Issue 2829853011: Polish the cleaning up url request code for parallel download. (Closed)
Patch Set: Work on feedbacks. Created 3 years, 8 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 | content/browser/download/download_file_impl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
7 7
8 #include "content/browser/download/download_file.h" 8 #include "content/browser/download/download_file.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 DownloadInterruptReason reason); 224 DownloadInterruptReason reason);
225 225
226 // Check whether this file is potentially sparse. 226 // Check whether this file is potentially sparse.
227 bool IsSparseFile() const; 227 bool IsSparseFile() const;
228 228
229 // Given a SourceStream object, returns its neighbor that preceds it if 229 // Given a SourceStream object, returns its neighbor that preceds it if
230 // SourceStreams are ordered by their offsets 230 // SourceStreams are ordered by their offsets
231 SourceStream* FindPrecedingNeighbor(SourceStream* source_stream); 231 SourceStream* FindPrecedingNeighbor(SourceStream* source_stream);
232 232
233 // See |cancel_request_callback_|. 233 // See |cancel_request_callback_|.
234 void CancelRequestOnUIThread(int64_t offset); 234 void CancelRequest(int64_t offset);
235 235
236 // Print the internal states for debugging. 236 // Print the internal states for debugging.
237 void DebugStates() const; 237 void DebugStates() const;
238 238
239 net::NetLogWithSource net_log_; 239 net::NetLogWithSource net_log_;
240 240
241 // The base file instance. 241 // The base file instance.
242 BaseFile file_; 242 BaseFile file_;
243 243
244 // DownloadSaveInfo provided during construction. Since the DownloadFileImpl 244 // DownloadSaveInfo provided during construction. Since the DownloadFileImpl
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 base::WeakPtr<DownloadDestinationObserver> observer_; 282 base::WeakPtr<DownloadDestinationObserver> observer_;
283 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; 283 base::WeakPtrFactory<DownloadFileImpl> weak_factory_;
284 284
285 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); 285 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl);
286 }; 286 };
287 287
288 } // namespace content 288 } // namespace content
289 289
290 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ 290 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698