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

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

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r168573 Created 8 years, 1 month 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
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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Update the persistent store with our information. 72 // Update the persistent store with our information.
73 virtual void UpdatePersistence(DownloadItemImpl* download); 73 virtual void UpdatePersistence(DownloadItemImpl* download);
74 74
75 // Handle any delegate portions of a state change operation on the 75 // Handle any delegate portions of a state change operation on the
76 // DownloadItem. 76 // DownloadItem.
77 virtual void DownloadStopped(DownloadItemImpl* download); 77 virtual void DownloadStopped(DownloadItemImpl* download);
78 virtual void DownloadCompleted(DownloadItemImpl* download); 78 virtual void DownloadCompleted(DownloadItemImpl* download);
79 virtual void DownloadOpened(DownloadItemImpl* download); 79 virtual void DownloadOpened(DownloadItemImpl* download);
80 virtual void DownloadRemoved(DownloadItemImpl* download); 80 virtual void DownloadRemoved(DownloadItemImpl* download);
81 virtual void DownloadRenamedToIntermediateName( 81
82 DownloadItemImpl* download); 82 // Show the download in the browser.
83 virtual void DownloadRenamedToFinalName(DownloadItemImpl* download); 83 virtual void ShowDownloadInBrowser(DownloadItemImpl* download);
84 84
85 // Assert consistent state for delgate object at various transitions. 85 // Assert consistent state for delgate object at various transitions.
86 virtual void AssertStateConsistent(DownloadItemImpl* download) const; 86 virtual void AssertStateConsistent(DownloadItemImpl* download) const;
87 87
88 private: 88 private:
89 // For "Outlives attached DownloadItemImpl" invariant assertion. 89 // For "Outlives attached DownloadItemImpl" invariant assertion.
90 int count_; 90 int count_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); 92 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate);
93 }; 93 };
94 94
95 } // namespace content 95 } // namespace content
96 96
97 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ 97 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698