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

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

Issue 11711003: Remove the DownloadItem::TogglePause() interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r175145. Created 7 years, 11 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 | « chrome/test/pyautolib/pyauto.py ('k') | 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const std::string& mime_type, 68 const std::string& mime_type,
69 const net::BoundNetLog& bound_net_log); 69 const net::BoundNetLog& bound_net_log);
70 70
71 virtual ~DownloadItemImpl(); 71 virtual ~DownloadItemImpl();
72 72
73 // DownloadItem 73 // DownloadItem
74 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; 74 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE;
75 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; 75 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE;
76 virtual void UpdateObservers() OVERRIDE; 76 virtual void UpdateObservers() OVERRIDE;
77 virtual void DangerousDownloadValidated() OVERRIDE; 77 virtual void DangerousDownloadValidated() OVERRIDE;
78 virtual void TogglePause() OVERRIDE; 78 virtual void Pause() OVERRIDE;
79 virtual void Resume() OVERRIDE;
79 virtual void Cancel(bool user_cancel) OVERRIDE; 80 virtual void Cancel(bool user_cancel) OVERRIDE;
80 virtual void Delete(DeleteReason reason) OVERRIDE; 81 virtual void Delete(DeleteReason reason) OVERRIDE;
81 virtual void Remove() OVERRIDE; 82 virtual void Remove() OVERRIDE;
82 virtual void OpenDownload() OVERRIDE; 83 virtual void OpenDownload() OVERRIDE;
83 virtual void ShowDownloadInShell() OVERRIDE; 84 virtual void ShowDownloadInShell() OVERRIDE;
84 virtual int32 GetId() const OVERRIDE; 85 virtual int32 GetId() const OVERRIDE;
85 virtual DownloadId GetGlobalId() const OVERRIDE; 86 virtual DownloadId GetGlobalId() const OVERRIDE;
86 virtual DownloadState GetState() const OVERRIDE; 87 virtual DownloadState GetState() const OVERRIDE;
87 virtual DownloadInterruptReason GetLastReason() const OVERRIDE; 88 virtual DownloadInterruptReason GetLastReason() const OVERRIDE;
88 virtual bool IsPaused() const OVERRIDE; 89 virtual bool IsPaused() const OVERRIDE;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 const net::BoundNetLog bound_net_log_; 469 const net::BoundNetLog bound_net_log_;
469 470
470 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 471 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
471 472
472 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 473 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
473 }; 474 };
474 475
475 } // namespace content 476 } // namespace content
476 477
477 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 478 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto.py ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698