| 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_);
|
|
|