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

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: Fixed the test 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
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..af9d54818821c103746c88ea7f4502b414dd600f 100644
--- a/content/public/browser/navigation_entry.h
+++ b/content/public/browser/navigation_entry.h
@@ -55,6 +55,16 @@ 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> data_url) = 0;
+ 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;
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/public/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698