Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "IDBClient.h" | |
| 7 | |
| 8 #include "core/inspector/InspectorController.h" | |
| 9 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | |
| 10 | |
| 11 namespace WebCore { | |
| 12 | |
| 13 PassOwnPtr<IndexedDBClient> IndexedDBClient::create() | |
| 14 { | |
| 15 return adoptPtr(new IndexedDBClient()); | |
| 16 } | |
| 17 | |
| 18 const char* IndexedDBClient::supplementName() | |
| 19 { | |
| 20 return "IndexedDBClient"; | |
| 21 } | |
| 22 | |
| 23 void provideIndexedDBClientTo(Page* page, PassOwnPtr<IndexedDBClient> client) | |
| 24 { | |
| 25 IndexedDBClient* clientPtr = client.get(); | |
| 26 page->provideSupplement(IndexedDBClient::supplementName(), client); | |
| 27 | |
| 28 InspectorController& inspectorController = page->inspectorController(); | |
| 29 OwnPtr<InspectorIndexedDBAgent> inspectorAgent = InspectorIndexedDBAgent::cr eate(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
| |
| 30 clientPtr->setInspectorIndexedDBAgent(inspectorAgent.get()); | |
| 31 inspectorController.registerModuleAgent(inspectorAgent.release()); | |
| 32 } | |
| 33 | |
| 34 } // namespace WebCore | |
| OLD | NEW |