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

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

Issue 10544175: Add an ability to call WebKit's WebFrame::loadData via NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually removed method decl from NavigationController interface Created 8 years, 5 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: content/browser/web_contents/navigation_entry_impl.h
diff --git a/content/browser/web_contents/navigation_entry_impl.h b/content/browser/web_contents/navigation_entry_impl.h
index 88d89929b0c9d5db58ae93333f789649e215c6f8..89725aaaa8373c1ee32f9c90bca6e17221a6fe5b 100644
--- a/content/browser/web_contents/navigation_entry_impl.h
+++ b/content/browser/web_contents/navigation_entry_impl.h
@@ -36,6 +36,8 @@ class CONTENT_EXPORT NavigationEntryImpl
virtual PageType GetPageType() const OVERRIDE;
virtual void SetURL(const GURL& url) OVERRIDE;
virtual const GURL& GetURL() const OVERRIDE;
+ virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE;
+ virtual const GURL& GetBaseURLForDataURL() const OVERRIDE;
virtual void SetReferrer(const Referrer& referrer) OVERRIDE;
virtual const Referrer& GetReferrer() const OVERRIDE;
virtual void SetVirtualURL(const GURL& url) OVERRIDE;
@@ -187,6 +189,9 @@ class CONTENT_EXPORT NavigationEntryImpl
// This member is not persisted with sesssion restore.
std::string extra_headers_;
+ // Used for specifying base URL for pages loaded via data URLs. Not persisted.
Charlie Reis 2012/07/10 20:54:19 Sanity check: why is this safe to not persist? Is
mnaganov (inactive) 2012/07/23 14:02:30 WebView currently uses the single-process model (f
+ GURL base_url_for_data_url_;
+
// Whether the entry, while loading, was created for a renderer-initiated
// navigation. This dictates whether the URL should be displayed before the
// navigation commits. It is cleared on commit and not persisted.

Powered by Google App Engine
This is Rietveld 408576698