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

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

Issue 2828073002: Fix an issue that we didn't clean url request properly. (Closed)
Patch Set: 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
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_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 void AutoResumeIfValid(); 500 void AutoResumeIfValid();
501 501
502 enum class ResumptionRequestSource { AUTOMATIC, USER }; 502 enum class ResumptionRequestSource { AUTOMATIC, USER };
503 void ResumeInterruptedDownload(ResumptionRequestSource source); 503 void ResumeInterruptedDownload(ResumptionRequestSource source);
504 504
505 // Update origin information based on the response to a download resumption 505 // Update origin information based on the response to a download resumption
506 // request. Should only be called if the resumption request was successful. 506 // request. Should only be called if the resumption request was successful.
507 virtual void UpdateValidatorsOnResumption( 507 virtual void UpdateValidatorsOnResumption(
508 const DownloadCreateInfo& new_create_info); 508 const DownloadCreateInfo& new_create_info);
509 509
510 // Cancel a particular request that starts from |offset|.
511 void CancelRequestWithOffset(int64_t offset);
512
510 static DownloadState InternalToExternalState( 513 static DownloadState InternalToExternalState(
511 DownloadInternalState internal_state); 514 DownloadInternalState internal_state);
512 static DownloadInternalState ExternalToInternalState( 515 static DownloadInternalState ExternalToInternalState(
513 DownloadState external_state); 516 DownloadState external_state);
514 517
515 // Debugging routines -------------------------------------------------------- 518 // Debugging routines --------------------------------------------------------
516 static const char* DebugDownloadStateString(DownloadInternalState state); 519 static const char* DebugDownloadStateString(DownloadInternalState state);
517 static const char* DebugResumeModeString(ResumeMode mode); 520 static const char* DebugResumeModeString(ResumeMode mode);
518 static bool IsValidSavePackageStateTransition(DownloadInternalState from, 521 static bool IsValidSavePackageStateTransition(DownloadInternalState from,
519 DownloadInternalState to); 522 DownloadInternalState to);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 std::unique_ptr<DownloadJob> job_; 714 std::unique_ptr<DownloadJob> job_;
712 715
713 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 716 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
714 717
715 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 718 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
716 }; 719 };
717 720
718 } // namespace content 721 } // namespace content
719 722
720 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 723 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698