[content shell] implement testRunner.overridePreference
[chromium-blink-merge.git] / content / browser / in_process_webkit / indexed_db_transaction_callbacks.h
blobdd56836960c40b6a96372a8ca4827e384b21c993
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"
12 namespace content {
13 class IndexedDBDispatcherHost;
15 class IndexedDBTransactionCallbacks
16 : public WebKit::WebIDBTransactionCallbacks {
17 public:
18 IndexedDBTransactionCallbacks(IndexedDBDispatcherHost* dispatcher_host,
19 int ipc_thread_id,
20 int ipc_transaction_id);
22 virtual ~IndexedDBTransactionCallbacks();
24 virtual void onAbort(const WebKit::WebIDBDatabaseError& error);
25 virtual void onComplete();
27 private:
28 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
29 int ipc_thread_id_;
30 int ipc_transaction_id_;
33 } // namespace content
35 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_TRANSACTION_CALLBACKS_H_