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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 48034: SSLPolicy Fix: Step 1.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 11701)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -688,6 +688,13 @@
return NULL;
}
+WebFrame* WebFrameImpl::GetTop() const {
+ if (frame_)
+ return FromFrame(frame_->tree()->top());
+
+ return NULL;
+}
+
WebFrame* WebFrameImpl::GetChildFrame(const std::wstring& xpath) const {
// xpath string can represent a frame deep down the tree (across multiple
// frame DOMs).
@@ -754,6 +761,15 @@
return webview_impl_;
}
+std::string WebFrameImpl::GetSecurityOrigin() const {
+ if (frame_) {
+ if (frame_->document())
+ return webkit_glue::StringToStdString(
+ frame_->document()->securityOrigin()->toString());
+ }
+ return "null";
+}
+
void WebFrameImpl::BindToWindowObject(const std::wstring& name,
NPObject* object) {
assert(frame_);
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698