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

Unified Diff: third_party/WebKit/Source/core/page/Page.h

Issue 2873503002: NOT YET READY: Improve granularity of window namespaces in Blink.
Patch Set: Rebasing... Created 3 years, 6 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 | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698