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

Unified Diff: Source/web/WebSecurityOrigin.cpp

Issue 428643007: Add WebSecurityOrigin::CanAccessFeatureRequiringSecureOrigin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pass the updated string through the out-param to the caller (!). Created 6 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
« no previous file with comments | « no previous file | public/web/WebSecurityOrigin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSecurityOrigin.cpp
diff --git a/Source/web/WebSecurityOrigin.cpp b/Source/web/WebSecurityOrigin.cpp
index b05afc7a5cb046e3d027eec39733fb15aa99a40e..1e5904dc33a9bd33b443ff9bbfe2c91b1b4639b7 100644
--- a/Source/web/WebSecurityOrigin.cpp
+++ b/Source/web/WebSecurityOrigin.cpp
@@ -110,6 +110,15 @@ bool WebSecurityOrigin::canRequest(const WebURL& url) const
return m_private->canRequest(url);
}
+bool WebSecurityOrigin::canAccessFeatureRequiringSecureOrigin(WebString& errorMessage) const
+{
+ ASSERT(m_private);
+ WTF::String message(errorMessage);
+ bool result = m_private->canAccessFeatureRequiringSecureOrigin(message);
+ errorMessage = message;
+ return result;
+}
+
WebString WebSecurityOrigin::toString() const
{
ASSERT(m_private);
« no previous file with comments | « no previous file | public/web/WebSecurityOrigin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698