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

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

Issue 14957002: [Resumption 7/11] Add a CanResume() method to DownloadItem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r200532 Created 7 years, 7 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 | content/browser/download/download_item_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_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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void Delete(DeleteReason reason) OVERRIDE; 97 virtual void Delete(DeleteReason reason) OVERRIDE;
98 virtual void Remove() OVERRIDE; 98 virtual void Remove() OVERRIDE;
99 virtual void OpenDownload() OVERRIDE; 99 virtual void OpenDownload() OVERRIDE;
100 virtual void ShowDownloadInShell() OVERRIDE; 100 virtual void ShowDownloadInShell() OVERRIDE;
101 virtual int32 GetId() const OVERRIDE; 101 virtual int32 GetId() const OVERRIDE;
102 virtual DownloadId GetGlobalId() const OVERRIDE; 102 virtual DownloadId GetGlobalId() const OVERRIDE;
103 virtual DownloadState GetState() const OVERRIDE; 103 virtual DownloadState GetState() const OVERRIDE;
104 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; 104 virtual DownloadInterruptReason GetLastReason() const OVERRIDE;
105 virtual bool IsPaused() const OVERRIDE; 105 virtual bool IsPaused() const OVERRIDE;
106 virtual bool IsTemporary() const OVERRIDE; 106 virtual bool IsTemporary() const OVERRIDE;
107 virtual bool CanResume() const OVERRIDE;
107 virtual bool IsPartialDownload() const OVERRIDE; 108 virtual bool IsPartialDownload() const OVERRIDE;
108 virtual bool IsInProgress() const OVERRIDE; 109 virtual bool IsInProgress() const OVERRIDE;
109 virtual bool IsCancelled() const OVERRIDE; 110 virtual bool IsCancelled() const OVERRIDE;
110 virtual bool IsInterrupted() const OVERRIDE; 111 virtual bool IsInterrupted() const OVERRIDE;
111 virtual bool IsComplete() const OVERRIDE; 112 virtual bool IsComplete() const OVERRIDE;
112 virtual const GURL& GetURL() const OVERRIDE; 113 virtual const GURL& GetURL() const OVERRIDE;
113 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE; 114 virtual const std::vector<GURL>& GetUrlChain() const OVERRIDE;
114 virtual const GURL& GetOriginalUrl() const OVERRIDE; 115 virtual const GURL& GetOriginalUrl() const OVERRIDE;
115 virtual const GURL& GetReferrerUrl() const OVERRIDE; 116 virtual const GURL& GetReferrerUrl() const OVERRIDE;
116 virtual std::string GetSuggestedFilename() const OVERRIDE; 117 virtual std::string GetSuggestedFilename() const OVERRIDE;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 const net::BoundNetLog bound_net_log_; 531 const net::BoundNetLog bound_net_log_;
531 532
532 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 533 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
533 534
534 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 535 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
535 }; 536 };
536 537
537 } // namespace content 538 } // namespace content
538 539
539 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 540 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698