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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 1733093002: [Test] have the provisional DocumentLoader protect itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/loader/DocumentLoader.h
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.h b/third_party/WebKit/Source/core/loader/DocumentLoader.h
index f13f8d9266992d74a72e3342ebac2c18f565b334..08ba73e7e8582d412c9fae860d9f13759276fe74 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -145,6 +145,8 @@ public:
Resource* startPreload(Resource::Type, FetchRequest&);
+ void setProtect(bool shouldProtect) { m_shouldProtect = shouldProtect; }
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -215,6 +217,8 @@ private:
double m_timeOfLastDataReceived;
+ bool m_shouldProtect;
+
PersistentWillBeMember<ApplicationCacheHost> m_applicationCacheHost;
RefPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy;

Powered by Google App Engine
This is Rietveld 408576698