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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java

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: HttpRequestHeaders iterator 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 package org.chromium.chrome.browser.contextmenu; 5 package org.chromium.chrome.browser.contextmenu;
6 6
7 import org.chromium.chrome.browser.Tab; 7 import org.chromium.chrome.browser.Tab;
8 import org.chromium.content.browser.ContentViewCore; 8 import org.chromium.content.browser.ContentViewCore;
9 import org.chromium.content_public.common.Referrer; 9 import org.chromium.content_public.common.Referrer;
10 10
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 boolean isIncognitoSupported(); 24 boolean isIncognitoSupported();
25 25
26 /** 26 /**
27 * @return Whether or not the context menu should give the user the chance t o show the original 27 * @return Whether or not the context menu should give the user the chance t o show the original
28 * image. 28 * image.
29 */ 29 */
30 boolean canLoadOriginalImage(); 30 boolean canLoadOriginalImage();
31 31
32 /** 32 /**
33 * Returns whether or not the Data Reduction Proxy is enabled for input url.
34 * @param url Input url to check for the Data Reduction Proxy setting.
35 * @return true if the Data Reduction Proxy is enabled for the url.
36 */
37 boolean isDataReductionProxyEnabledForURL(String url);
38
39 /**
33 * Called when the context menu is trying to start a download. 40 * Called when the context menu is trying to start a download.
34 * @param url Url of the download item. 41 * @param url Url of the download item.
35 * @param isLink Whether or not the download is a link (as opposed to an ima ge/video). 42 * @param isLink Whether or not the download is a link (as opposed to an ima ge/video).
36 * @return Whether or not a download should actually be started. 43 * @return Whether or not a download should actually be started.
37 */ 44 */
38 boolean startDownload(String url, boolean isLink); 45 boolean startDownload(String url, boolean isLink);
39 46
40 /** 47 /**
41 * Called when the {@code url} should be opened in a new tab with the same i ncognito state as 48 * Called when the {@code url} should be opened in a new tab with the same i ncognito state as
42 * the current {@link Tab}. 49 * the current {@link Tab}.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /** 96 /**
90 * Called when a search by image should be performed in a new tab. 97 * Called when a search by image should be performed in a new tab.
91 */ 98 */
92 void onSearchByImageInNewTab(); 99 void onSearchByImageInNewTab();
93 100
94 /** 101 /**
95 * @return page url. 102 * @return page url.
96 */ 103 */
97 String getPageUrl(); 104 String getPageUrl();
98 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698