| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 using blink::protocol::Array; | 65 using blink::protocol::Array; |
| 66 using blink::protocol::IndexedDB::DatabaseWithObjectStores; | 66 using blink::protocol::IndexedDB::DatabaseWithObjectStores; |
| 67 using blink::protocol::IndexedDB::DataEntry; | 67 using blink::protocol::IndexedDB::DataEntry; |
| 68 using blink::protocol::IndexedDB::Key; | 68 using blink::protocol::IndexedDB::Key; |
| 69 using blink::protocol::IndexedDB::KeyPath; | 69 using blink::protocol::IndexedDB::KeyPath; |
| 70 using blink::protocol::IndexedDB::KeyRange; | 70 using blink::protocol::IndexedDB::KeyRange; |
| 71 using blink::protocol::IndexedDB::ObjectStore; | 71 using blink::protocol::IndexedDB::ObjectStore; |
| 72 using blink::protocol::IndexedDB::ObjectStoreIndex; | 72 using blink::protocol::IndexedDB::ObjectStoreIndex; |
| 73 | 73 |
| 74 typedef blink::protocol::Backend::CallbackBase RequestCallback; | 74 typedef blink::protocol::BackendCallback RequestCallback; |
| 75 typedef blink::protocol::Backend::IndexedDB::RequestDatabaseNamesCallback Reques
tDatabaseNamesCallback; | 75 typedef blink::protocol::IndexedDB::Backend::RequestDatabaseNamesCallback Reques
tDatabaseNamesCallback; |
| 76 typedef blink::protocol::Backend::IndexedDB::RequestDatabaseCallback RequestData
baseCallback; | 76 typedef blink::protocol::IndexedDB::Backend::RequestDatabaseCallback RequestData
baseCallback; |
| 77 typedef blink::protocol::Backend::IndexedDB::RequestDataCallback RequestDataCall
back; | 77 typedef blink::protocol::IndexedDB::Backend::RequestDataCallback RequestDataCall
back; |
| 78 typedef blink::protocol::Backend::IndexedDB::ClearObjectStoreCallback ClearObjec
tStoreCallback; | 78 typedef blink::protocol::IndexedDB::Backend::ClearObjectStoreCallback ClearObjec
tStoreCallback; |
| 79 | 79 |
| 80 namespace blink { | 80 namespace blink { |
| 81 | 81 |
| 82 namespace IndexedDBAgentState { | 82 namespace IndexedDBAgentState { |
| 83 static const char indexedDBAgentEnabled[] = "indexedDBAgentEnabled"; | 83 static const char indexedDBAgentEnabled[] = "indexedDBAgentEnabled"; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 namespace { | 86 namespace { |
| 87 | 87 |
| 88 class GetDatabaseNamesCallback final : public EventListener { | 88 class GetDatabaseNamesCallback final : public EventListener { |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 | 570 |
| 571 } // namespace | 571 } // namespace |
| 572 | 572 |
| 573 // static | 573 // static |
| 574 InspectorIndexedDBAgent* InspectorIndexedDBAgent::create(InspectedFrames* inspec
tedFrames) | 574 InspectorIndexedDBAgent* InspectorIndexedDBAgent::create(InspectedFrames* inspec
tedFrames) |
| 575 { | 575 { |
| 576 return new InspectorIndexedDBAgent(inspectedFrames); | 576 return new InspectorIndexedDBAgent(inspectedFrames); |
| 577 } | 577 } |
| 578 | 578 |
| 579 InspectorIndexedDBAgent::InspectorIndexedDBAgent(InspectedFrames* inspectedFrame
s) | 579 InspectorIndexedDBAgent::InspectorIndexedDBAgent(InspectedFrames* inspectedFrame
s) |
| 580 : InspectorBaseAgent<InspectorIndexedDBAgent, protocol::Frontend::IndexedDB>
("IndexedDB") | 580 : InspectorBaseAgent<InspectorIndexedDBAgent, protocol::IndexedDB::Frontend>
("IndexedDB") |
| 581 , m_inspectedFrames(inspectedFrames) | 581 , m_inspectedFrames(inspectedFrames) |
| 582 { | 582 { |
| 583 } | 583 } |
| 584 | 584 |
| 585 InspectorIndexedDBAgent::~InspectorIndexedDBAgent() | 585 InspectorIndexedDBAgent::~InspectorIndexedDBAgent() |
| 586 { | 586 { |
| 587 } | 587 } |
| 588 | 588 |
| 589 void InspectorIndexedDBAgent::restore() | 589 void InspectorIndexedDBAgent::restore() |
| 590 { | 590 { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN
ame); | 805 clearObjectStore->start(idbFactory, document->getSecurityOrigin(), databaseN
ame); |
| 806 } | 806 } |
| 807 | 807 |
| 808 DEFINE_TRACE(InspectorIndexedDBAgent) | 808 DEFINE_TRACE(InspectorIndexedDBAgent) |
| 809 { | 809 { |
| 810 visitor->trace(m_inspectedFrames); | 810 visitor->trace(m_inspectedFrames); |
| 811 InspectorBaseAgent::trace(visitor); | 811 InspectorBaseAgent::trace(visitor); |
| 812 } | 812 } |
| 813 | 813 |
| 814 } // namespace blink | 814 } // namespace blink |
| OLD | NEW |