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

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool reserved_path_verified); 200 bool reserved_path_verified);
201 201
202 // Called on the UI thread once the final target path is available. 202 // Called on the UI thread once the final target path is available.
203 void OnTargetPathDetermined( 203 void OnTargetPathDetermined(
204 int32 download_id, 204 int32 download_id,
205 const content::DownloadTargetCallback& callback, 205 const content::DownloadTargetCallback& callback,
206 content::DownloadItem::TargetDisposition disposition, 206 content::DownloadItem::TargetDisposition disposition,
207 content::DownloadDangerType danger_type, 207 content::DownloadDangerType danger_type,
208 const FilePath& target_path); 208 const FilePath& target_path);
209 209
210 #if defined(ENABLE_WEB_INTENTS)
211 // Check policy of whether we should open this download with a web intents
212 // dispatch.
213 bool ShouldOpenWithWebIntents(const content::DownloadItem* item);
214
215 // Open the given item with a web intent dispatch.
216 void OpenWithWebIntent(const content::DownloadItem* item);
217 #endif
218
219 // Internal gateways for ShouldCompleteDownload(). 210 // Internal gateways for ShouldCompleteDownload().
220 bool IsDownloadReadyForCompletion( 211 bool IsDownloadReadyForCompletion(
221 content::DownloadItem* item, 212 content::DownloadItem* item,
222 const base::Closure& internal_complete_callback); 213 const base::Closure& internal_complete_callback);
223 void ShouldCompleteDownloadInternal( 214 void ShouldCompleteDownloadInternal(
224 int download_id, 215 int download_id,
225 const base::Closure& user_complete_callback); 216 const base::Closure& user_complete_callback);
226 217
227 Profile* profile_; 218 Profile* profile_;
228 int next_download_id_; 219 int next_download_id_;
(...skipping 23 matching lines...) Expand all
252 #endif 243 #endif
253 244
254 // The directory most recently chosen by the user in response to a Save As 245 // The directory most recently chosen by the user in response to a Save As
255 // dialog for a regular download. 246 // dialog for a regular download.
256 FilePath last_download_path_; 247 FilePath last_download_path_;
257 248
258 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 249 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
259 }; 250 };
260 251
261 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 252 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698