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 21 matching lines...) Expand all Loading... |
32 #define InspectorIndexedDBAgent_h | 32 #define InspectorIndexedDBAgent_h |
33 | 33 |
34 #include "core/inspector/InspectorBaseAgent.h" | 34 #include "core/inspector/InspectorBaseAgent.h" |
35 #include "core/inspector/protocol/IndexedDB.h" | 35 #include "core/inspector/protocol/IndexedDB.h" |
36 #include "modules/ModulesExport.h" | 36 #include "modules/ModulesExport.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class InspectedFrames; | 41 class InspectedFrames; |
42 | 42 class V8InspectorSession; |
43 | 43 |
44 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<p
rotocol::IndexedDB::Metainfo> { | 44 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<p
rotocol::IndexedDB::Metainfo> { |
45 public: | 45 public: |
46 static InspectorIndexedDBAgent* create(InspectedFrames*); | 46 InspectorIndexedDBAgent(InspectedFrames*, V8InspectorSession*); |
47 | |
48 ~InspectorIndexedDBAgent() override; | 47 ~InspectorIndexedDBAgent() override; |
49 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
50 | 49 |
51 void restore() override; | 50 void restore() override; |
| 51 void didCommitLoadForLocalFrame(LocalFrame*) override; |
52 | 52 |
53 // Called from the front-end. | 53 // Called from the front-end. |
54 void enable(ErrorString*) override; | 54 void enable(ErrorString*) override; |
55 void disable(ErrorString*) override; | 55 void disable(ErrorString*) override; |
56 void requestDatabaseNames(ErrorString*, const String& securityOrigin, std::u
nique_ptr<RequestDatabaseNamesCallback>) override; | 56 void requestDatabaseNames(ErrorString*, const String& securityOrigin, std::u
nique_ptr<RequestDatabaseNamesCallback>) override; |
57 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin
g& databaseName, std::unique_ptr<RequestDatabaseCallback>) override; | 57 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin
g& databaseName, std::unique_ptr<RequestDatabaseCallback>) override; |
58 void requestData(ErrorString*, const String& securityOrigin, const String& d
atabaseName, const String& objectStoreName, const String& indexName, int skipCou
nt, int pageSize, const Maybe<protocol::IndexedDB::KeyRange>&, std::unique_ptr<R
equestDataCallback>) override; | 58 void requestData(ErrorString*, const String& securityOrigin, const String& d
atabaseName, const String& objectStoreName, const String& indexName, int skipCou
nt, int pageSize, const Maybe<protocol::IndexedDB::KeyRange>&, std::unique_ptr<R
equestDataCallback>) override; |
59 void clearObjectStore(ErrorString*, const String& securityOrigin, const Stri
ng& databaseName, const String& objectStoreName, std::unique_ptr<ClearObjectStor
eCallback>) override; | 59 void clearObjectStore(ErrorString*, const String& securityOrigin, const Stri
ng& databaseName, const String& objectStoreName, std::unique_ptr<ClearObjectStor
eCallback>) override; |
60 | 60 |
61 private: | 61 private: |
62 explicit InspectorIndexedDBAgent(InspectedFrames*); | |
63 | |
64 Member<InspectedFrames> m_inspectedFrames; | 62 Member<InspectedFrames> m_inspectedFrames; |
| 63 V8InspectorSession* m_v8Session; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif // !defined(InspectorIndexedDBAgent_h) | 68 #endif // !defined(InspectorIndexedDBAgent_h) |
OLD | NEW |