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

Unified Diff: Source/web/WebDocument.cpp

Issue 1136883003: Expose Document::isPrivilegedContext from WebDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/WebDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebDocument.cpp
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp
index 1cfc8aebb9ab90835b1d357ad7cae1318aba3c46..1ae13e3e8f8623d3607e95cbaab8e615b07ecdb8 100644
--- a/Source/web/WebDocument.cpp
+++ b/Source/web/WebDocument.cpp
@@ -82,6 +82,17 @@ WebSecurityOrigin WebDocument::securityOrigin() const
return WebSecurityOrigin(constUnwrap<Document>()->securityOrigin());
}
+bool WebDocument::isPrivilegedContext(WebString& errorMessage)
+{
+ Document* document = unwrap<Document>();
jww 2015/05/12 02:35:20 I *think* isPrivilegedContext() actually could be
+ if (!document)
+ return false;
+ String message;
+ bool result = document->isPrivilegedContext(message);
+ errorMessage = message;
+ return result;
+}
+
WebString WebDocument::encoding() const
{
return constUnwrap<Document>()->encodingName();
« no previous file with comments | « no previous file | public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698