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

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

Issue 178193033: Android: support http referrers for context menu navigations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
index e5b3210cb2df4f567aec14e9039fc68db3ec2209..391a842e85e73a6d91b3834f4842751d95cae127 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
@@ -5,7 +5,7 @@
package org.chromium.chrome.browser.contextmenu;
import org.chromium.chrome.browser.Tab;
-import org.chromium.content.browser.ContentView;
+import org.chromium.content_public.Referrer;
/**
* A delegate responsible for taking actions based on context menu selections.
@@ -39,7 +39,7 @@ public interface ChromeContextMenuItemDelegate {
* the current {@link Tab}.
* @param url The URL to open.
*/
- void onOpenInNewTab(String url);
+ void onOpenInNewTab(String url, Referrer referrer);
/**
* Called when the {@code url} should be opened in a new incognito tab.
@@ -51,13 +51,13 @@ public interface ChromeContextMenuItemDelegate {
* Called when the {@code url} is of an image and should be opened in the same tab.
* @param url The image URL to open.
*/
- void onOpenImageUrl(String url);
+ void onOpenImageUrl(String url, Referrer referrer);
/**
* Called when the {@code url} is of an image and should be opened in a new tab.
* @param url The image URL to open.
*/
- void onOpenImageInNewTab(String url);
+ void onOpenImageInNewTab(String url, Referrer referrer);
/**
* Called when the {@code text} should be saved to the clipboard.

Powered by Google App Engine
This is Rietveld 408576698