| 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
|
|
|