| 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 29 matching lines...) Expand all Loading... |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Page; | 42 class Page; |
| 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(Page*); | 48 static PassOwnPtrWillBeRawPtr<InspectorIndexedDBAgent> create(Page*); |
| 49 | 49 |
| 50 virtual ~InspectorIndexedDBAgent(); | 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 virtual void enable(ErrorString*) override; | 57 void enable(ErrorString*) override; |
| 58 virtual void requestDatabaseNames(ErrorString*, const String& securityOrigin
, PassRefPtrWillBeRawPtr<RequestDatabaseNamesCallback>) override; | 58 void requestDatabaseNames(ErrorString*, const String& securityOrigin, PassRe
fPtrWillBeRawPtr<RequestDatabaseNamesCallback>) override; |
| 59 virtual void requestDatabase(ErrorString*, const String& securityOrigin, con
st String& databaseName, PassRefPtrWillBeRawPtr<RequestDatabaseCallback>) overri
de; | 59 void requestDatabase(ErrorString*, const String& securityOrigin, const Strin
g& databaseName, PassRefPtrWillBeRawPtr<RequestDatabaseCallback>) override; |
| 60 virtual void requestData(ErrorString*, const String& securityOrigin, const S
tring& databaseName, const String& objectStoreName, const String& indexName, int
skipCount, int pageSize, const RefPtr<JSONObject>* keyRange, PassRefPtrWillBeRa
wPtr<RequestDataCallback>) 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, PassRefPtrWillBeRawPtr<Req
uestDataCallback>) override; |
| 61 virtual void clearObjectStore(ErrorString*, const String& in_securityOrigin,
const String& in_databaseName, const String& in_objectStoreName, PassRefPtrWill
BeRawPtr<ClearObjectStoreCallback>) override; | 61 void clearObjectStore(ErrorString*, const String& in_securityOrigin, const S
tring& in_databaseName, const String& in_objectStoreName, PassRefPtrWillBeRawPtr
<ClearObjectStoreCallback>) override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 explicit InspectorIndexedDBAgent(Page*); | 64 explicit InspectorIndexedDBAgent(Page*); |
| 65 | 65 |
| 66 RawPtrWillBeMember<Page> m_page; | 66 RawPtrWillBeMember<Page> m_page; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // !defined(InspectorIndexedDBAgent_h) | 71 #endif // !defined(InspectorIndexedDBAgent_h) |
| OLD | NEW |