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 26 matching lines...) Expand all Loading... |
37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class Database; | 42 class Database; |
43 class InspectorDatabaseResource; | 43 class InspectorDatabaseResource; |
44 class InspectorFrontend; | 44 class InspectorFrontend; |
45 class Page; | 45 class Page; |
46 | 46 |
47 typedef String ErrorString; | |
48 | 47 |
49 class MODULES_EXPORT InspectorDatabaseAgent final : public InspectorBaseAgent<In
spectorDatabaseAgent, protocol::Frontend::Database>, public protocol::Dispatcher
::DatabaseCommandHandler { | 48 class MODULES_EXPORT InspectorDatabaseAgent final : public InspectorBaseAgent<In
spectorDatabaseAgent, protocol::Frontend::Database>, public protocol::Dispatcher
::DatabaseCommandHandler { |
50 WTF_MAKE_NONCOPYABLE(InspectorDatabaseAgent); | 49 WTF_MAKE_NONCOPYABLE(InspectorDatabaseAgent); |
51 public: | 50 public: |
52 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create(Page* page) | 51 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create(Page* page) |
53 { | 52 { |
54 return adoptPtrWillBeNoop(new InspectorDatabaseAgent(page)); | 53 return adoptPtrWillBeNoop(new InspectorDatabaseAgent(page)); |
55 } | 54 } |
56 ~InspectorDatabaseAgent() override; | 55 ~InspectorDatabaseAgent() override; |
57 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
(...skipping 16 matching lines...) Expand all Loading... |
74 | 73 |
75 RawPtrWillBeMember<Page> m_page; | 74 RawPtrWillBeMember<Page> m_page; |
76 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource>> DatabaseResourcesHeapMap; | 75 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource>> DatabaseResourcesHeapMap; |
77 DatabaseResourcesHeapMap m_resources; | 76 DatabaseResourcesHeapMap m_resources; |
78 bool m_enabled; | 77 bool m_enabled; |
79 }; | 78 }; |
80 | 79 |
81 } // namespace blink | 80 } // namespace blink |
82 | 81 |
83 #endif // !defined(InspectorDatabaseAgent_h) | 82 #endif // !defined(InspectorDatabaseAgent_h) |
OLD | NEW |