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

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

Issue 11941015: Move OpenItem/ShowItemInFolder from ContentBrowserClient to DownloadManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void ResumeInterruptedDownload( 70 virtual void ResumeInterruptedDownload(
71 scoped_ptr<content::DownloadUrlParameters> params, 71 scoped_ptr<content::DownloadUrlParameters> params,
72 content::DownloadId id); 72 content::DownloadId id);
73 73
74 // For contextual issues like language and prefs. 74 // For contextual issues like language and prefs.
75 virtual BrowserContext* GetBrowserContext() const; 75 virtual BrowserContext* GetBrowserContext() const;
76 76
77 // Update the persistent store with our information. 77 // Update the persistent store with our information.
78 virtual void UpdatePersistence(DownloadItemImpl* download); 78 virtual void UpdatePersistence(DownloadItemImpl* download);
79 79
80 // Opens the file associated with this download.
81 virtual void OpenDownload(DownloadItemImpl* download);
82
83 // Shows the download via the OS shell.
84 virtual void ShowDownloadInShell(DownloadItemImpl* download);
85
80 // Handle any delegate portions of a state change operation on the 86 // Handle any delegate portions of a state change operation on the
81 // DownloadItem. 87 // DownloadItem.
82 virtual void DownloadOpened(DownloadItemImpl* download);
83 virtual void DownloadRemoved(DownloadItemImpl* download); 88 virtual void DownloadRemoved(DownloadItemImpl* download);
84 89
85 // Show the download in the browser. 90 // Show the download in the browser.
86 virtual void ShowDownloadInBrowser(DownloadItemImpl* download); 91 virtual void ShowDownloadInBrowser(DownloadItemImpl* download);
87 92
88 // Assert consistent state for delgate object at various transitions. 93 // Assert consistent state for delgate object at various transitions.
89 virtual void AssertStateConsistent(DownloadItemImpl* download) const; 94 virtual void AssertStateConsistent(DownloadItemImpl* download) const;
90 95
91 private: 96 private:
92 // For "Outlives attached DownloadItemImpl" invariant assertion. 97 // For "Outlives attached DownloadItemImpl" invariant assertion.
93 int count_; 98 int count_;
94 99
95 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); 100 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate);
96 }; 101 };
97 102
98 } // namespace content 103 } // namespace content
99 104
100 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ 105 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698