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

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

Issue 2795673002: Added UseCounter for clearing browsing context name on cross-origin name (Closed)
Patch Set: CR changes Created 3 years, 8 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 b0da0e6c76b5b39913d816e008f2b1194f496904..8e28a1ef857793bbed54d5ac4c1111d35cfe01fd 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -96,7 +96,8 @@ class CORE_EXPORT DocumentLoader
unsigned long mainResourceIdentifier() const;
void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&,
- const String& source);
+ const String& source,
+ SecurityOrigin* frameSecurityOrigin);
dcheng 2017/04/04 07:53:21 Please clang-format the cl (the presubmit should
andypaicu 2017/04/04 14:15:28 Good catch. My presubmit did not raise any warning
const AtomicString& mimeType() const;
@@ -221,6 +222,11 @@ class CORE_EXPORT DocumentLoader
const SubstituteData&,
ClientRedirectPolicy);
+ static bool shouldClearWindowName(
+ const LocalFrame&,
+ SecurityOrigin* frameSecurityOrigin,
+ const Document& newDocument);
+
Vector<KURL> m_redirectChain;
private:
@@ -234,7 +240,8 @@ class CORE_EXPORT DocumentLoader
const AtomicString& encoding,
InstallNewDocumentReason,
ParserSynchronizationPolicy,
- const KURL& overridingURL);
+ const KURL& overridingURL,
+ SecurityOrigin* frameSecurityOrigin);
void didInstallNewDocument(Document*);
void didCommitNavigation();

Powered by Google App Engine
This is Rietveld 408576698