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

Unified Diff: third_party/WebKit/Source/core/frame/History.h

Issue 2972073002: Mitigate the pushState IPC storm DoS. (Closed)
Patch Set: Simpler data model. Thanks dcheng! Created 3 years, 5 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/core/frame/History.h
diff --git a/third_party/WebKit/Source/core/frame/History.h b/third_party/WebKit/Source/core/frame/History.h
index fb7fc5ea80e861f79ba6018f86a012daf1056201..ccca9cbe1e4a30c0d63b5fab779b224da9f9782c 100644
--- a/third_party/WebKit/Source/core/frame/History.h
+++ b/third_party/WebKit/Source/core/frame/History.h
@@ -33,6 +33,7 @@
#include "platform/bindings/ScriptWrappable.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/Forward.h"
+#include "platform/wtf/Time.h"
namespace blink {
@@ -102,7 +103,13 @@ class CORE_EXPORT History final : public GarbageCollectedFinalized<History>,
SerializedScriptValue* StateInternal() const;
HistoryScrollRestorationType ScrollRestorationInternal() const;
+ bool IsFloodingState(const String& hostname) const;
dcheng 2017/07/07 21:04:09 Nit: remove the arg which is no longer needed. Nit
palmer 2017/07/07 21:38:17 Done.
+
RefPtr<SerializedScriptValue> last_state_object_requested_;
+ mutable struct {
+ int count;
+ TimeTicks last_updated;
+ } state_flood_guard;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/History.cpp » ('j') | third_party/WebKit/Source/core/frame/History.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698