| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class InspectedFrames; | 42 class InspectedFrames; |
| 43 | 43 |
| 44 typedef String ErrorString; | 44 typedef String ErrorString; |
| 45 | 45 |
| 46 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<I
nspectorIndexedDBAgent, InspectorFrontend::IndexedDB>, public InspectorBackendDi
spatcher::IndexedDBCommandHandler { | 46 class MODULES_EXPORT InspectorIndexedDBAgent final : public InspectorBaseAgent<I
nspectorIndexedDBAgent, InspectorFrontend::IndexedDB>, public InspectorBackendDi
spatcher::IndexedDBCommandHandler { |
| 47 public: | 47 public: |
| 48 static PassOwnPtrWillBeRawPtr<InspectorIndexedDBAgent> create(InspectedFrame
s*); | 48 static RawPtr<InspectorIndexedDBAgent> create(InspectedFrames*); |
| 49 | 49 |
| 50 ~InspectorIndexedDBAgent() override; | 50 ~InspectorIndexedDBAgent() override; |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 | 52 |
| 53 void disable(ErrorString*) override; | 53 void disable(ErrorString*) override; |
| 54 void restore() override; | 54 void restore() override; |
| 55 | 55 |
| 56 // Called from the front-end. | 56 // Called from the front-end. |
| 57 void enable(ErrorString*) override; | 57 void enable(ErrorString*) override; |
| 58 void requestDatabaseNames(ErrorString*, const String& securityOrigin, PassRe
fPtr<RequestDatabaseNamesCallback>) override; | 58 void requestDatabaseNames(ErrorString*, const String& securityOrigin, PassRe
fPtr<RequestDatabaseNamesCallback>) override; |
| 59 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin
g& databaseName, PassRefPtr<RequestDatabaseCallback>) override; | 59 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin
g& databaseName, PassRefPtr<RequestDatabaseCallback>) override; |
| 60 void requestData(ErrorString*, const String& securityOrigin, const String& d
atabaseName, const String& objectStoreName, const String& indexName, int skipCou
nt, int pageSize, const RefPtr<JSONObject>* keyRange, PassRefPtr<RequestDataCall
back>) override; | 60 void requestData(ErrorString*, const String& securityOrigin, const String& d
atabaseName, const String& objectStoreName, const String& indexName, int skipCou
nt, int pageSize, const RefPtr<JSONObject>* keyRange, PassRefPtr<RequestDataCall
back>) override; |
| 61 void clearObjectStore(ErrorString*, const String& in_securityOrigin, const S
tring& in_databaseName, const String& in_objectStoreName, PassRefPtr<ClearObject
StoreCallback>) override; | 61 void clearObjectStore(ErrorString*, const String& in_securityOrigin, const S
tring& in_databaseName, const String& in_objectStoreName, PassRefPtr<ClearObject
StoreCallback>) override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 explicit InspectorIndexedDBAgent(InspectedFrames*); | 64 explicit InspectorIndexedDBAgent(InspectedFrames*); |
| 65 | 65 |
| 66 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 66 Member<InspectedFrames> m_inspectedFrames; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // !defined(InspectorIndexedDBAgent_h) | 71 #endif // !defined(InspectorIndexedDBAgent_h) |
| OLD | NEW |