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

Unified Diff: chrome/browser/ui/android/context_menu_helper.h

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/browser/ui/android/context_menu_helper.h
diff --git a/chrome/browser/ui/android/context_menu_helper.h b/chrome/browser/ui/android/context_menu_helper.h
index cf01818602465bfe8e7a847a5d3f507ce2f525c5..58e608eb95c8c6c58991de0428868bb175ad100e 100644
--- a/chrome/browser/ui/android/context_menu_helper.h
+++ b/chrome/browser/ui/android/context_menu_helper.h
@@ -41,6 +41,9 @@ class ContextMenuHelper
static base::android::ScopedJavaLocalRef<jobject> CreateJavaContextMenuParams(
const content::ContextMenuParams& params);
+ // Strips the referring url from username, password and ref fields.
Ted C 2014/03/05 22:20:53 s/from/of
ppi 2014/03/06 11:41:04 Done.
+ static GURL SanitizeReferrer(const GURL& referrer);
+
base::android::ScopedJavaGlobalRef<jobject> java_obj_;
content::WebContents* web_contents_;

Powered by Google App Engine
This is Rietveld 408576698