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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2550883003: nav timing 2 redirect allow opt-in (Closed)
Patch Set: addressed comments and added unit tests Created 4 years 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/timing/PerformanceBase.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.h b/third_party/WebKit/Source/core/timing/PerformanceBase.h
index 739d5a5968a15f8b05b64e70a461067ec165c4fb..e3414dcfeec231eed67a7990f7d871eec6fdba43 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h
@@ -132,6 +132,17 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
static PerformanceNavigationTiming::NavigationType getNavigationType(
NavigationType,
const Document*);
+ SecurityOrigin* getSecurityOrigin() const;
+
+ static bool allowsTimingRedirect(const Vector<ResourceResponse>&,
+ const ResourceResponse&,
+ const SecurityOrigin&,
+ ExecutionContext*);
+
+ static bool passesTimingAllowCheck(const ResourceResponse&,
+ const SecurityOrigin&,
+ const AtomicString&,
+ ExecutionContext*);
protected:
explicit PerformanceBase(double timeOrigin);

Powered by Google App Engine
This is Rietveld 408576698