+void DatabaseClient::didOpenDatabase(PassRefPtr<Database> database, const String& domain, const String& name, const String& version)
+{
+ if (m_inspectorAgent)
+ m_inspectorAgent->didOpenDatabase(database, domain, name, version);
+}
+
+void DatabaseClient::createInspectorAgentFor(Page* page)
+{
+ ASSERT(!m_inspectorAgent);
+ OwnPtr<InspectorDatabaseAgent> inspectorAgent = InspectorDatabaseAgent::create();
+ m_inspectorAgent = inspectorAgent.get();
+ page->inspectorController().registerModuleAgent(inspectorAgent.release());
+}
+