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

Side by Side Diff: android_webview/browser/aw_download_manager_delegate.h

Issue 11821011: Return false in AwWebContentsDelegate::CanDownload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NOTREACHED 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
« no previous file with comments | « no previous file | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_
7 7
8 #include "content/public/browser/download_manager_delegate.h" 8 #include "content/public/browser/download_manager_delegate.h"
9 9
10 namespace content {
11 class DownloadItem;
12 } // namespace content
13
14 namespace android_webview { 10 namespace android_webview {
15 11
16 // Android WebView does not use Chromium downloads, so implement methods here to 12 // Android WebView does not use Chromium downloads, so implement methods here to
17 // unconditionally cancel the download. 13 // unconditionally cancel the download.
18 class AwDownloadManagerDelegate : public content::DownloadManagerDelegate { 14 class AwDownloadManagerDelegate : public content::DownloadManagerDelegate {
19 public: 15 public:
20 virtual ~AwDownloadManagerDelegate(); 16 virtual ~AwDownloadManagerDelegate();
21 17
22 // content::DownloadManagerDelegate implementation. 18 // content::DownloadManagerDelegate implementation.
23 virtual bool DetermineDownloadTarget( 19 virtual bool DetermineDownloadTarget(
24 content::DownloadItem* item, 20 content::DownloadItem* item,
25 const content::DownloadTargetCallback& callback) OVERRIDE; 21 const content::DownloadTargetCallback& callback) OVERRIDE;
26 virtual bool ShouldCompleteDownload( 22 virtual bool ShouldCompleteDownload(
27 content::DownloadItem* item, 23 content::DownloadItem* item,
28 const base::Closure& complete_callback) OVERRIDE; 24 const base::Closure& complete_callback) OVERRIDE;
29 virtual bool ShouldOpenDownload( 25 virtual bool ShouldOpenDownload(
30 content::DownloadItem* item, 26 content::DownloadItem* item,
31 const content::DownloadOpenDelayedCallback& callback) OVERRIDE; 27 const content::DownloadOpenDelayedCallback& callback) OVERRIDE;
32 }; 28 };
33 29
34 } // anemspace android_webview 30 } // namespace android_webview
35 31
36 #endif // ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_ 32 #endif // ANDROID_WEBVIEW_BROWSER_AW_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698