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

Unified Diff: webkit/glue/glue_util.cc

Issue 46094: Fix our handling of mixed SSL / non-SSL content.... (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
Index: webkit/glue/glue_util.cc
===================================================================
--- webkit/glue/glue_util.cc (revision 11701)
+++ webkit/glue/glue_util.cc (working copy)
@@ -11,6 +11,7 @@
MSVC_PUSH_WARNING_LEVEL(0);
#include "CString.h"
+#include "Frame.h"
#include "IntRect.h"
#include "PlatformString.h"
#include "KURL.h"
@@ -143,4 +144,12 @@
return WebCore::IntRect(r.x(), r.y(), r.width(), r.height());
}
+// Security --------------------------------------------------------------------
+
+std::string FrameToOrigin(WebCore::Frame* frame) {
+ if (!frame || !frame->document())
+ return "null";
+ return StringToStdString(frame->document()->securityOrigin()->toString());
+}
+
} // namespace webkit_glue

Powered by Google App Engine
This is Rietveld 408576698