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

Unified Diff: content/child/database_util.cc

Issue 1832473002: WebSQL: Use url::Origin rather than database identifiers for IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/child/database_util.cc
diff --git a/content/child/database_util.cc b/content/child/database_util.cc
index 844799e1200456aee797d53586473d333e71a158..989b170fddfb7bf589c4ea8507fc129d46404b0b 100644
--- a/content/child/database_util.cc
+++ b/content/child/database_util.cc
@@ -6,10 +6,12 @@
#include "content/common/database_messages.h"
#include "ipc/ipc_sync_message_filter.h"
+#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/sqlite/sqlite3.h"
using blink::Platform;
+using blink::WebSecurityOrigin;
using blink::WebString;
namespace content {
@@ -56,11 +58,11 @@ long long DatabaseUtil::DatabaseGetFileSize(
}
long long DatabaseUtil::DatabaseGetSpaceAvailable(
- const WebString& origin_identifier,
+ const WebSecurityOrigin& origin,
IPC::SyncMessageFilter* sync_message_filter) {
int64_t rv = 0LL;
sync_message_filter->Send(
- new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(), &rv));
+ new DatabaseHostMsg_GetSpaceAvailable(origin, &rv));
return rv;
}

Powered by Google App Engine
This is Rietveld 408576698