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

Unified Diff: Source/modules/webdatabase/DatabaseClient.cpp

Issue 147353007: DevTools: remove references to modules/webdatabase from core/inspector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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: Source/modules/webdatabase/DatabaseClient.cpp
diff --git a/Source/modules/webdatabase/DatabaseClient.cpp b/Source/modules/webdatabase/DatabaseClient.cpp
index ef4c9e88d1831968493dcd2a785173a60fb1fca8..6e8e3aa510d206dce8292c0b510314e8cfa0ecfd 100644
--- a/Source/modules/webdatabase/DatabaseClient.cpp
+++ b/Source/modules/webdatabase/DatabaseClient.cpp
@@ -32,7 +32,10 @@
#include "DatabaseClient.h"
#include "core/dom/Document.h"
+#include "core/inspector/InspectorController.h"
#include "core/workers/WorkerGlobalScope.h"
+#include "modules/webdatabase/Database.h"
+#include "modules/webdatabase/InspectorDatabaseAgent.h"
namespace WebCore {
@@ -50,9 +53,18 @@ const char* DatabaseClient::supplementName()
return "DatabaseClient";
}
+void DatabaseClient::didOpenDatabase(PassRefPtr<Database> database, const String& domain, const String& name, const String& version)
+{
+ m_inspectorAgent->didOpenDatabase(database, domain, name, version);
+}
+
void provideDatabaseClientTo(Page* page, PassOwnPtr<DatabaseClient> client)
{
+ DatabaseClient* clientPtr = client.get();
page->provideSupplement(DatabaseClient::supplementName(), client);
+ OwnPtr<InspectorDatabaseAgent> inspectorAgent = InspectorDatabaseAgent::create();
+ clientPtr->setInspectorDatabaseAgent(inspectorAgent.get());
+ page->inspectorController().registerModuleAgent(inspectorAgent.release());
pfeldman 2014/02/05 13:21:44 It sounds like DatabaseClientImpl for worker and f
Vladislav Kaznacheev 2014/02/06 12:38:37 I would really like to avoid involving the Web lay
}
void provideDatabaseClientToWorker(WorkerClients* workerClients, PassOwnPtr<DatabaseClient> client)

Powered by Google App Engine
This is Rietveld 408576698