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

Unified Diff: Source/modules/indexeddb/IDBClient.cpp

Issue 148253005: DevTools: remove references to modules/indexeddb 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/indexeddb/IDBClient.cpp
diff --git a/Source/modules/indexeddb/IDBClient.cpp b/Source/modules/indexeddb/IDBClient.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..97c4da0301d7c0f9e3d7bd0466a81b955fe92a0c
--- /dev/null
+++ b/Source/modules/indexeddb/IDBClient.cpp
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "IDBClient.h"
+
+#include "core/inspector/InspectorController.h"
+#include "modules/indexeddb/InspectorIndexedDBAgent.h"
+
+namespace WebCore {
+
+PassOwnPtr<IndexedDBClient> IndexedDBClient::create()
+{
+ return adoptPtr(new IndexedDBClient());
+}
+
+const char* IndexedDBClient::supplementName()
+{
+ return "IndexedDBClient";
+}
+
+void provideIndexedDBClientTo(Page* page, PassOwnPtr<IndexedDBClient> client)
+{
+ IndexedDBClient* clientPtr = client.get();
+ page->provideSupplement(IndexedDBClient::supplementName(), client);
+
+ InspectorController& inspectorController = page->inspectorController();
+ OwnPtr<InspectorIndexedDBAgent> inspectorAgent = InspectorIndexedDBAgent::create(inspectorController.injectedScriptManager(), inspectorController.pageAgent());
pfeldman 2014/02/05 12:32:07 Inspector agents are private to inspector subsyste
Vladislav Kaznacheev 2014/02/06 09:48:22 Removed InjectedScriptManager dependency from Insp
+ clientPtr->setInspectorIndexedDBAgent(inspectorAgent.get());
+ inspectorController.registerModuleAgent(inspectorAgent.release());
+}
+
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698