Index: third_party/WebKit/Source/core/page/Page.h |
diff --git a/third_party/WebKit/Source/core/page/Page.h b/third_party/WebKit/Source/core/page/Page.h |
index ccaea49b60b03068fd46c1032360ba34ddf107ae..eb6680ecf26cd2324eebc751a052a154e57e7ae9 100644 |
--- a/third_party/WebKit/Source/core/page/Page.h |
+++ b/third_party/WebKit/Source/core/page/Page.h |
@@ -110,7 +110,7 @@ class CORE_EXPORT Page final : public GarbageCollectedFinalized<Page>, |
} |
// An "ordinary" page is a fully-featured page owned by a web view. |
- static Page* CreateOrdinary(PageClients&); |
+ static Page* CreateOrdinary(PageClients&, Page* opener); |
~Page() override; |
@@ -126,6 +126,11 @@ class CORE_EXPORT Page final : public GarbageCollectedFinalized<Page>, |
// (SVGImages, inspector overlays, page popups etc.) |
static PageSet& OrdinaryPages(); |
+ // Returns pages related to the current browsing context (excluding the |
+ // current page). See also |
+ // https://html.spec.whatwg.org/multipage/browsers.html#unit-of-related-browsing-contexts |
+ HeapVector<Member<Page>> RelatedPages(); |
+ |
static void PlatformColorsChanged(); |
void SetNeedsRecalcStyleInAllFrames(); |
@@ -369,6 +374,11 @@ class CORE_EXPORT Page final : public GarbageCollectedFinalized<Page>, |
#endif |
int subframe_count_; |
+ |
+ // The next 2 fields form a circular, double-linked list of pages that are |
+ // related to the current browsing context. See also RelatedPages method. |
+ Member<Page> next_related_page_; |
+ Member<Page> prev_related_page_; |
}; |
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |