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

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

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 years, 9 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
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/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Opens the file associated with this download. 80 // Opens the file associated with this download.
81 virtual void OpenDownload(DownloadItemImpl* download); 81 virtual void OpenDownload(DownloadItemImpl* download);
82 82
83 // Shows the download via the OS shell. 83 // Shows the download via the OS shell.
84 virtual void ShowDownloadInShell(DownloadItemImpl* download); 84 virtual void ShowDownloadInShell(DownloadItemImpl* download);
85 85
86 // Handle any delegate portions of a state change operation on the 86 // Handle any delegate portions of a state change operation on the
87 // DownloadItem. 87 // DownloadItem.
88 virtual void DownloadRemoved(DownloadItemImpl* download); 88 virtual void DownloadRemoved(DownloadItemImpl* download);
89 89
90 // Show the download in the browser.
91 virtual void ShowDownloadInBrowser(DownloadItemImpl* download);
92
93 // Assert consistent state for delgate object at various transitions. 90 // Assert consistent state for delgate object at various transitions.
94 virtual void AssertStateConsistent(DownloadItemImpl* download) const; 91 virtual void AssertStateConsistent(DownloadItemImpl* download) const;
95 92
96 private: 93 private:
97 // For "Outlives attached DownloadItemImpl" invariant assertion. 94 // For "Outlives attached DownloadItemImpl" invariant assertion.
98 int count_; 95 int count_;
99 96
100 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); 97 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate);
101 }; 98 };
102 99
103 } // namespace content 100 } // namespace content
104 101
105 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ 102 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/download/download_item_impl_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698