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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1504403003: Calling isSecureContext() with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored isSecureContext() Created 5 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/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index e4af2d668ac3ceec0542bae0da93112f749382a7..7bbba278df9667255152f86cd321d0e43896b053 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -1021,6 +1021,7 @@ public:
NthIndexCache* nthIndexCache() const { return m_nthIndexCache; }
bool isSecureContext(String& errorMessage, const SecureContextCheck = StandardSecureContextCheck) const override;
+ bool isSecureContext(const SecureContextCheck = StandardSecureContextCheck) const override;
ClientHintsPreferences& clientHintsPreferences() { return m_clientHintsPreferences; }
@@ -1105,6 +1106,8 @@ private:
bool childTypeAllowed(NodeType) const final;
PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) final;
void cloneDataFromDocument(const Document&);
+ bool isOriginPotentiallyTrustworthy(SecurityOrigin*, String* errorMessage) const;
+ bool isSecureContextImpl(String* errorMessage, const SecureContextCheck priviligeContextCheck) const;
#if !ENABLE(OILPAN)
void refExecutionContext() final { ref(); }

Powered by Google App Engine
This is Rietveld 408576698