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; |