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

Side by Side Diff: content/public/browser/download_manager_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_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Asks the user for the path to save a page. The delegate calls the callback 111 // Asks the user for the path to save a page. The delegate calls the callback
112 // to give the answer. 112 // to give the answer.
113 virtual void ChooseSavePath(WebContents* web_contents, 113 virtual void ChooseSavePath(WebContents* web_contents,
114 const FilePath& suggested_path, 114 const FilePath& suggested_path,
115 const FilePath::StringType& default_extension, 115 const FilePath::StringType& default_extension,
116 bool can_save_as_complete, 116 bool can_save_as_complete,
117 const SavePackagePathPickedCallback& callback) { 117 const SavePackagePathPickedCallback& callback) {
118 } 118 }
119 119
120 // Opens the file associated with this download.
121 virtual void OpenDownload(DownloadItem* download) {}
122
123 // Shows the download via the OS shell.
124 virtual void ShowDownloadInShell(DownloadItem* download) {}
125
120 protected: 126 protected:
121 virtual ~DownloadManagerDelegate(); 127 virtual ~DownloadManagerDelegate();
122 }; 128 };
123 129
124 } // namespace content 130 } // namespace content
125 131
126 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_ 132 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698