Index: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
index df8a50ab29080719d428eb1fcfcc92ca7be4119c..39c2a77edccbe6eba2e27118c9d17dc40d063224 100644 |
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
@@ -65,6 +65,7 @@ DocumentLifecycle::DeprecatedTransition::~DeprecatedTransition() |
DocumentLifecycle::DocumentLifecycle() |
: m_state(Uninitialized) |
, m_detachCount(0) |
+ , m_throttlingMode(ThrottlingMode::Disallow) |
{ |
} |
@@ -266,4 +267,14 @@ void DocumentLifecycle::ensureStateAtMost(State state) |
m_state = state; |
} |
+void DocumentLifecycle::setThrottlingMode(ThrottlingMode throttlingMode) |
+{ |
+ m_throttlingMode = throttlingMode; |
+} |
+ |
+DocumentLifecycle::ThrottlingMode DocumentLifecycle::throttlingMode() const |
+{ |
+ return m_throttlingMode; |
+} |
+ |
} |