Chromium Code Reviews| 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 |