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

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: remove curly braces 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
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& headers) = 0;
Ted C 2015/06/23 16:32:53 I would call this extra_headers to be consistent (
megjablon 2015/06/23 20:29:47 Done.
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

Powered by Google App Engine
This is Rietveld 408576698