Lines Matching defs:RequestCallback
79 typedef blink::InspectorBackendDispatcher::CallbackBase RequestCallback;
93 static PassRefPtr<GetDatabaseNamesCallback> create(PassRefPtrWillBeRawPtr<RequestDatabaseNamesCallback> requestCallback, const String& securityOrigin)
95 return adoptRef(new GetDatabaseNamesCallback(requestCallback, securityOrigin));
129 GetDatabaseNamesCallback(PassRefPtrWillBeRawPtr<RequestDatabaseNamesCallback> requestCallback, const String& securityOrigin)
131 , m_requestCallback(requestCallback)
144 virtual RequestCallback* requestCallback() = 0;
168 m_executableWithDatabase->requestCallback()->sendFailure("Unexpected event type.");
175 m_executableWithDatabase->requestCallback()->sendFailure("Unexpected result type.");
198 requestCallback()->sendFailure("Could not open database.");
260 static PassRefPtr<DatabaseLoader> create(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDatabaseCallback> requestCallback)
262 return adoptRef(new DatabaseLoader(scriptState, requestCallback));
269 if (!requestCallback()->isActive())
308 virtual RequestCallback* requestCallback() OVERRIDE { return m_requestCallback.get(); }
310 DatabaseLoader(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDatabaseCallback> requestCallback)
312 , m_requestCallback(requestCallback) { }
391 static PassRefPtr<OpenCursorCallback> create(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDataCallback> requestCallback, int skipCount, unsigned pageSize)
393 return adoptRef(new OpenCursorCallback(scriptState, requestCallback, skipCount, pageSize));
473 OpenCursorCallback(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDataCallback> requestCallback, int skipCount, unsigned pageSize)
476 , m_requestCallback(requestCallback)
492 static PassRefPtr<DataLoader> create(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDataCallback> requestCallback, const String& objectStoreName, const String& indexName, IDBKeyRange* idbKeyRange, int skipCount, unsigned pageSize)
494 return adoptRef(new DataLoader(scriptState, requestCallback, objectStoreName, indexName, idbKeyRange, skipCount, pageSize));
501 if (!requestCallback()->isActive())
531 virtual RequestCallback* requestCallback() OVERRIDE { return m_requestCallback.get(); }
532 DataLoader(ScriptState* scriptState, PassRefPtrWillBeRawPtr<RequestDataCallback> requestCallback, const String& objectStoreName, const String& indexName, IDBKeyRange* idbKeyRange, int skipCount, unsigned pageSize)
534 , m_requestCallback(requestCallback)
629 void InspectorIndexedDBAgent::requestDatabaseNames(ErrorString* errorString, const String& securityOrigin, PassRefPtrWillBeRawPtr<RequestDatabaseNamesCallback> requestCallback)
644 requestCallback->sendFailure("Could not obtain database names.");
647 idbRequest->addEventListener(EventTypeNames::success, GetDatabaseNamesCallback::create(requestCallback, document->securityOrigin()->toRawString()), false);
650 void InspectorIndexedDBAgent::requestDatabase(ErrorString* errorString, const String& securityOrigin, const String& databaseName, PassRefPtrWillBeRawPtr<RequestDatabaseCallback> requestCallback)
662 RefPtr<DatabaseLoader> databaseLoader = DatabaseLoader::create(scriptState, requestCallback);
666 void InspectorIndexedDBAgent::requestData(ErrorString* errorString, const String& securityOrigin, const String& databaseName, const String& objectStoreName, const String& indexName, int skipCount, int pageSize, const RefPtr<JSONObject>* keyRange, const PassRefPtrWillBeRawPtr<RequestDataCallback> requestCallback)
684 RefPtr<DataLoader> dataLoader = DataLoader::create(scriptState, requestCallback, objectStoreName, indexName, idbKeyRange, skipCount, pageSize);
691 static PassRefPtr<ClearObjectStoreListener> create(PassRefPtrWillBeRawPtr<ClearObjectStoreCallback> requestCallback)
693 return adoptRef(new ClearObjectStoreListener(requestCallback));
715 ClearObjectStoreListener(PassRefPtrWillBeRawPtr<ClearObjectStoreCallback> requestCallback)
717 , m_requestCallback(requestCallback)
727 static PassRefPtr<ClearObjectStore> create(ScriptState* scriptState, const String& objectStoreName, PassRefPtrWillBeRawPtr<ClearObjectStoreCallback> requestCallback)
729 return adoptRef(new ClearObjectStore(scriptState, objectStoreName, requestCallback));
732 ClearObjectStore(ScriptState* scriptState, const String& objectStoreName, PassRefPtrWillBeRawPtr<ClearObjectStoreCallback> requestCallback)
735 , m_requestCallback(requestCallback)
741 if (!requestCallback()->isActive())
765 virtual RequestCallback* requestCallback() OVERRIDE { return m_requestCallback.get(); }
771 void InspectorIndexedDBAgent::clearObjectStore(ErrorString* errorString, const String& securityOrigin, const String& databaseName, const String& objectStoreName, PassRefPtrWillBeRawPtr<ClearObjectStoreCallback> requestCallback)
783 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(scriptState, objectStoreName, requestCallback);