OLD | NEW |
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 Loading... |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 /** | 91 /** |
85 * Called when a search by image should be performed in a new tab. | 92 * Called when a search by image should be performed in a new tab. |
86 */ | 93 */ |
87 void onSearchByImageInNewTab(); | 94 void onSearchByImageInNewTab(); |
88 | 95 |
89 /** | 96 /** |
90 * @return page url. | 97 * @return page url. |
91 */ | 98 */ |
92 String getPageUrl(); | 99 String getPageUrl(); |
93 } | 100 } |
OLD | NEW |