1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_TRANSACTION_CALLBACKS_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_TRANSACTION_CALLBACKS_H_
8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransactionCallbacks.h"
13 class IndexedDBDispatcherHost
;
15 class IndexedDBTransactionCallbacks
16 : public WebKit::WebIDBTransactionCallbacks
{
18 IndexedDBTransactionCallbacks(IndexedDBDispatcherHost
* dispatcher_host
,
20 int ipc_transaction_id
);
22 virtual ~IndexedDBTransactionCallbacks();
24 virtual void onAbort(const WebKit::WebIDBDatabaseError
& error
);
25 virtual void onComplete();
28 scoped_refptr
<IndexedDBDispatcherHost
> dispatcher_host_
;
30 int ipc_transaction_id_
;
33 } // namespace content
35 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_TRANSACTION_CALLBACKS_H_