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

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: 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_controller_impl.h
diff --git a/content/browser/web_contents/navigation_controller_impl.h b/content/browser/web_contents/navigation_controller_impl.h
index aa9ac236e61c91a588495b6fc89af686f0354575..9d30c59fe7ad744adf29711415e5cb5884442372 100644
--- a/content/browser/web_contents/navigation_controller_impl.h
+++ b/content/browser/web_contents/navigation_controller_impl.h
@@ -11,6 +11,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"
@@ -25,7 +26,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,
@@ -104,6 +106,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;

Powered by Google App Engine
This is Rietveld 408576698