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

Side by Side Diff: content/public/browser/android/download_controller_android.h

Issue 1182293002: Save image should download the original image when Data Saver is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 6 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
« no previous file with comments | « content/browser/android/download_controller_android_impl.cc ('k') | no next file » | 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 CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/context_menu_params.h" 9 #include "content/public/common/context_menu_params.h"
10 10
(...skipping 14 matching lines...) Expand all
25 int request_id) = 0; 25 int request_id) = 0;
26 26
27 // Should be called when a download is started. It can be either a GET 27 // Should be called when a download is started. It can be either a GET
28 // request with authentication or a POST request. Notifies the embedding 28 // request with authentication or a POST request. Notifies the embedding
29 // app about the download. Should be called on the UI thread. 29 // app about the download. Should be called on the UI thread.
30 virtual void OnDownloadStarted(DownloadItem* download_item) = 0; 30 virtual void OnDownloadStarted(DownloadItem* download_item) = 0;
31 31
32 // Called when a download is initiated by context menu. 32 // Called when a download is initiated by context menu.
33 virtual void StartContextMenuDownload( 33 virtual void StartContextMenuDownload(
34 const ContextMenuParams& params, WebContents* web_contents, 34 const ContextMenuParams& params, WebContents* web_contents,
35 bool is_link) = 0; 35 bool is_link, const std::string& extra_headers) = 0;
36 36
37 // Called when a dangerous download item is verified or rejected. 37 // Called when a dangerous download item is verified or rejected.
38 virtual void DangerousDownloadValidated( 38 virtual void DangerousDownloadValidated(
39 WebContents* web_contents, int download_id, bool accept) = 0; 39 WebContents* web_contents, int download_id, bool accept) = 0;
40 40
41 protected: 41 protected:
42 virtual ~DownloadControllerAndroid() {}; 42 virtual ~DownloadControllerAndroid() {};
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_ 47 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/download_controller_android_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698