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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 211013: Introduce WebKit::WebSecurityOrigin as a wrapper around... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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') | webkit/glue/webframeloaderclient_impl.cc » ('j') | 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 26545)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -152,6 +152,7 @@
#include "webkit/api/public/WebRange.h"
#include "webkit/api/public/WebRect.h"
#include "webkit/api/public/WebScriptSource.h"
+#include "webkit/api/public/WebSecurityOrigin.h"
#include "webkit/api/public/WebSize.h"
#include "webkit/api/public/WebURLError.h"
#include "webkit/api/public/WebVector.h"
@@ -224,6 +225,7 @@
using WebKit::WebRange;
using WebKit::WebRect;
using WebKit::WebScriptSource;
+using WebKit::WebSecurityOrigin;
using WebKit::WebSize;
using WebKit::WebString;
using WebKit::WebURL;
@@ -564,13 +566,12 @@
results.swap(temp);
}
-WebString WebFrameImpl::securityOrigin() const {
- if (frame_) {
- if (frame_->document())
- return webkit_glue::StringToWebString(
- frame_->document()->securityOrigin()->toString());
- }
- return WebString::fromUTF8("null");
+WebSecurityOrigin WebFrameImpl::securityOrigin() const {
+ if (!frame_ || !frame_->document())
+ return WebSecurityOrigin();
+
+ return webkit_glue::SecurityOriginToWebSecurityOrigin(
+ frame_->document()->securityOrigin());
}
void WebFrameImpl::grantUniversalAccess() {
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698