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

Unified Diff: content/browser/web_contents/navigation_controller_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: More comments addressed 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_controller_impl.h
diff --git a/content/browser/web_contents/navigation_controller_impl.h b/content/browser/web_contents/navigation_controller_impl.h
index f8428b091b9cf572227c4650b26fc2205fa07b50..e60a3629b2eb6162786f6a0303f114fe9fa2c8cb 100644
--- a/content/browser/web_contents/navigation_controller_impl.h
+++ b/content/browser/web_contents/navigation_controller_impl.h
@@ -10,6 +10,7 @@
#include "base/memory/linked_ptr.h"
#include "base/time.h"
#include "content/browser/ssl/ssl_manager.h"
+#include "content/public/browser/android/navigation_controller_webview.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_type.h"
@@ -24,7 +25,8 @@ class SiteInstance;
}
class CONTENT_EXPORT NavigationControllerImpl
- : public NON_EXPORTED_BASE(content::NavigationController) {
+ : public NON_EXPORTED_BASE(content::NavigationController),
+ public NON_EXPORTED_BASE(content::NavigationControllerWebView) {
public:
NavigationControllerImpl(
WebContentsImpl* web_contents,
@@ -103,6 +105,14 @@ class CONTENT_EXPORT NavigationControllerImpl
content::NavigationController* source) OVERRIDE;
virtual void PruneAllButActive() OVERRIDE;
+ // NavigationControllerWebView implementation.
+ virtual void LoadDataWithBaseURL(
+ const GURL& data_url,
+ const content::Referrer& referrer,
+ const GURL& base_url,
+ const GURL& history_url,
+ bool is_overriding_user_agent) OVERRIDE;
+
// Returns the index of the specified entry, or -1 if entry is not contained
// in this NavigationController.
int GetIndexOfEntry(const content::NavigationEntryImpl* entry) const;
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698