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

Unified Diff: webkit/api/src/WebSecurityOrigin.cpp

Issue 351013: Chrome changes to extract the code from V8Proxy that special-cases... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/api/src/TemporaryGlue.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebSecurityOrigin.cpp
===================================================================
--- webkit/api/src/WebSecurityOrigin.cpp (revision 30634)
+++ webkit/api/src/WebSecurityOrigin.cpp (working copy)
@@ -55,22 +55,48 @@
assign(p);
}
-WebString WebSecurityOrigin::databaseIdentifier()
+WebString WebSecurityOrigin::protocol() const
{
- if (m_private)
- return m_private->databaseIdentifier();
+ ASSERT(m_private);
+ return m_private->protocol();
+}
- return WebString::fromUTF8("null");
+WebString WebSecurityOrigin::host() const
+{
+ ASSERT(m_private);
+ return m_private->host();
}
+unsigned short WebSecurityOrigin::port() const
+{
+ ASSERT(m_private);
+ return m_private->port();
+}
+
+bool WebSecurityOrigin::isEmpty() const
+{
+ ASSERT(m_private);
+ return m_private->isEmpty();
+}
+
WebString WebSecurityOrigin::toString() const
{
+ // FIXME: We should not support calling this method when m_private is null.
if (m_private)
return m_private->toString();
return WebString::fromUTF8("null");
}
+WebString WebSecurityOrigin::databaseIdentifier()
+{
+ // FIXME: We should not support calling this method when m_private is null.
+ if (m_private)
+ return m_private->databaseIdentifier();
+
+ return WebString::fromUTF8("null");
+}
+
WebSecurityOrigin::WebSecurityOrigin(const WTF::PassRefPtr<WebCore::SecurityOrigin>& origin)
: m_private(static_cast<WebSecurityOriginPrivate*>(origin.releaseRef()))
{
« no previous file with comments | « webkit/api/src/TemporaryGlue.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698