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

Unified Diff: Source/web/WebFrameImpl.h

Issue 46783003: Add a unique frame id and save it on HistoryItem. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.h
diff --git a/Source/web/WebFrameImpl.h b/Source/web/WebFrameImpl.h
index 37b667bb5a0b0ea44fbf2f39eafb10d8fd01b52b..ba4694d61c2285f61dd58d23fb93472369f430a1 100644
--- a/Source/web/WebFrameImpl.h
+++ b/Source/web/WebFrameImpl.h
@@ -414,7 +414,24 @@ private:
// Returns a hit-tested VisiblePosition for the given point
WebCore::VisiblePosition visiblePositionForWindowPoint(const WebPoint&);
- FrameLoaderClientImpl m_frameLoaderClient;
+ class WebFrameInit : public WebCore::FrameInit {
+ public:
+ static PassRefPtr<WebFrameInit> create(WebFrameImpl* webFrameImpl, int64_t frameID)
+ {
+ return adoptRef(new WebFrameInit(webFrameImpl, frameID));
+ }
+
+ private:
+ WebFrameInit(WebFrameImpl* webFrameImpl, int64_t frameID)
+ : WebCore::FrameInit(frameID)
+ , m_frameLoaderClientImpl(webFrameImpl)
+ {
+ setFrameLoaderClient(&m_frameLoaderClientImpl);
+ }
+
+ FrameLoaderClientImpl m_frameLoaderClientImpl;
+ };
+ RefPtr<WebFrameInit> m_frameInit;
WebFrameClient* m_client;
@@ -495,9 +512,6 @@ private:
// information. Is used by PrintPage().
OwnPtr<ChromePrintContext> m_printContext;
- // The identifier of this frame.
- long long m_embedderIdentifier;
-
// Ensure we don't overwrite valid history data during same document loads
// from HistoryItems
bool m_inSameDocumentHistoryLoad;
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698