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

Unified Diff: content/public/browser/navigation_entry.h

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make specific to Android, use RefCountedString Created 5 years 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: content/public/browser/navigation_entry.h
diff --git a/content/public/browser/navigation_entry.h b/content/public/browser/navigation_entry.h
index 850fdb4b57264d90d120b5ffed20fdfaffdf5357..e19388ae6fe575e76a69a78ee542900257d15ad2 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -55,6 +55,15 @@ class NavigationEntry {
virtual void SetBaseURLForDataURL(const GURL& url) = 0;
virtual const GURL& GetBaseURLForDataURL() const = 0;
+#if defined(OS_ANDROID)
+ // The real data: URL when it is received via WebView.loadDataWithBaseUrl
+ // method. Represented as a string to circumvent the size restriction
+ // of GURLs for compatibility with legacy Android WebView apps.
+ virtual void SetDataURLAsString(scoped_refptr<base::RefCountedString>) = 0;
Charlie Reis 2015/12/14 20:35:57 nit: Please name parameter data_url.
mnaganov (inactive) 2015/12/15 18:30:29 Done.
+ virtual const scoped_refptr<const base::RefCountedString> GetDataURLAsString()
+ const = 0;
+#endif
+
// The referring URL. Can be empty.
virtual void SetReferrer(const content::Referrer& referrer) = 0;
virtual const content::Referrer& GetReferrer() const = 0;

Powered by Google App Engine
This is Rietveld 408576698