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

Unified Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 84703003: Allow data URL > 2MB for loadDataWithBaseURL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/browser/frame_host/navigation_entry_impl.h
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h
index c7f4f5fc7c48ff36d3d4b733c404c533d8879b91..0c6e52d95b2939e51163fb4da9dbeb36586fec4e 100644
--- a/content/browser/frame_host/navigation_entry_impl.h
+++ b/content/browser/frame_host/navigation_entry_impl.h
@@ -41,6 +41,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual const GURL& GetURL() const OVERRIDE;
virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE;
virtual const GURL& GetBaseURLForDataURL() const OVERRIDE;
+ virtual void SetDataForDataURL(base::RefCountedMemory* data) OVERRIDE;
+ virtual base::RefCountedMemory* GetDataForDataURL() const OVERRIDE;
virtual void SetReferrer(const Referrer& referrer) OVERRIDE;
virtual const Referrer& GetReferrer() const OVERRIDE;
virtual void SetVirtualURL(const GURL& url) OVERRIDE;
@@ -277,6 +279,11 @@ class CONTENT_EXPORT NavigationEntryImpl
// This member is not persisted with session restore.
std::string extra_headers_;
+ // Payload data of a navigation entry with a base URL override -- only used
+ // if |base_url_for_data_url_| is non-empty. Only used and persisted by
+ // Android WebView.
+ scoped_refptr<base::RefCountedMemory> data_for_data_url_;
+
// Used for specifying base URL for pages loaded via data URLs. Only used and
// persisted by Android WebView.
GURL base_url_for_data_url_;

Powered by Google App Engine
This is Rietveld 408576698