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

Unified Diff: public/web/WebFrameClient.h

Issue 214723003: Add an unimplemented history API to WebView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 77948f1439c272fd0774194d4b92245b13138046..30b60b08657eebfee1f879bb81bc41512a582934 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -34,6 +34,7 @@
#include "WebDOMMessageEvent.h"
#include "WebDataSource.h"
#include "WebFrame.h"
+#include "WebHistoryItem.h"
#include "WebIconURL.h"
#include "WebNavigationPolicy.h"
#include "WebNavigationType.h"
@@ -164,6 +165,10 @@ public:
WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavigationType,
WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPolicy; }
+ // During a history navigation, we may choose to load new subframes from history as well.
+ // This returns such a history item if appropriate.
+ virtual WebHistoryItem historyItemForNewChildFrame(WebFrame*) { return WebHistoryItem(); }
+
// Navigational notifications ------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698