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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h

Issue 2948983002: Low memory page navigation GC for low end devices (Closed)
Patch Set: fix 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
Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
index f42a069a37c75a683c9e6b2b8f4c576b8be76f6b..7143fa4c1dedd5d790a5e56388e1a9e574cd8ffe 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
@@ -151,6 +151,7 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> {
void ClearForClose();
void ClearForNavigation();
+ void ClearForSwap();
CORE_EXPORT v8::Local<v8::Object> GlobalProxyIfNotDetached();
v8::Local<v8::Object> ReleaseGlobalProxy();
@@ -162,6 +163,8 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> {
virtual bool IsLocal() const { return false; }
+ enum FrameReuseStatus { kFrameWillNotBeReused, kFrameWillBeReused };
+
protected:
// Lifecycle represents the following four states.
//
@@ -227,7 +230,7 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> {
virtual void Initialize() = 0;
- virtual void DisposeContext(Lifecycle next_status) = 0;
+ virtual void DisposeContext(Lifecycle next_status, FrameReuseStatus) = 0;
WARN_UNUSED_RESULT v8::Local<v8::Object> AssociateWithWrapper(
DOMWindow*,

Powered by Google App Engine
This is Rietveld 408576698