| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef InspectorDatabaseAgent_h | 29 #ifndef InspectorDatabaseAgent_h |
| 30 #define InspectorDatabaseAgent_h | 30 #define InspectorDatabaseAgent_h |
| 31 | 31 |
| 32 #include "core/InspectorFrontend.h" | 32 #include "core/InspectorFrontend.h" |
| 33 #include "core/inspector/InspectorBaseAgent.h" | 33 #include "core/inspector/InspectorBaseAgent.h" |
| 34 #include "platform/heap/Handle.h" | |
| 35 #include "wtf/HashMap.h" | |
| 36 #include "wtf/PassOwnPtr.h" | |
| 37 #include "wtf/text/WTFString.h" | |
| 38 | 34 |
| 39 namespace blink { | 35 namespace blink { |
| 40 | 36 |
| 41 class Database; | 37 class Database; |
| 42 class DocumentLoader; | |
| 43 class LocalFrame; | |
| 44 class InspectorDatabaseResource; | 38 class InspectorDatabaseResource; |
| 45 class InspectorFrontend; | 39 class InspectorFrontend; |
| 46 class InstrumentingAgents; | |
| 47 | 40 |
| 48 typedef String ErrorString; | 41 typedef String ErrorString; |
| 49 | 42 |
| 50 class InspectorDatabaseAgent final : public InspectorBaseAgent<InspectorDatabase
Agent>, public InspectorBackendDispatcher::DatabaseCommandHandler { | 43 class InspectorDatabaseAgent final : public InspectorBaseAgent<InspectorDatabase
Agent>, public InspectorBackendDispatcher::DatabaseCommandHandler { |
| 51 public: | 44 public: |
| 52 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create() | 45 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create() |
| 53 { | 46 { |
| 54 return adoptPtrWillBeNoop(new InspectorDatabaseAgent()); | 47 return adoptPtrWillBeNoop(new InspectorDatabaseAgent()); |
| 55 } | 48 } |
| 56 virtual ~InspectorDatabaseAgent(); | 49 virtual ~InspectorDatabaseAgent(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 77 | 70 |
| 78 InspectorFrontend::Database* m_frontend; | 71 InspectorFrontend::Database* m_frontend; |
| 79 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource> > DatabaseResourcesHeapMap; | 72 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource> > DatabaseResourcesHeapMap; |
| 80 DatabaseResourcesHeapMap m_resources; | 73 DatabaseResourcesHeapMap m_resources; |
| 81 bool m_enabled; | 74 bool m_enabled; |
| 82 }; | 75 }; |
| 83 | 76 |
| 84 } // namespace blink | 77 } // namespace blink |
| 85 | 78 |
| 86 #endif // !defined(InspectorDatabaseAgent_h) | 79 #endif // !defined(InspectorDatabaseAgent_h) |
| OLD | NEW |