| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" | 9 |
| 10 namespace WebKit { |
| 11 class WebIDBDatabaseError; |
| 12 } |
| 10 | 13 |
| 11 namespace content { | 14 namespace content { |
| 12 class IndexedDBDispatcherHost; | 15 class IndexedDBDispatcherHost; |
| 13 | 16 |
| 14 class IndexedDBDatabaseCallbacks : public WebKit::WebIDBDatabaseCallbacks { | 17 class IndexedDBDatabaseCallbacks { |
| 15 public: | 18 public: |
| 16 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 19 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, |
| 17 int ipc_thread_id, | 20 int ipc_thread_id, |
| 18 int ipc_database_callbacks_id); | 21 int ipc_database_callbacks_id); |
| 19 | 22 |
| 20 virtual ~IndexedDBDatabaseCallbacks(); | 23 virtual ~IndexedDBDatabaseCallbacks(); |
| 21 | 24 |
| 22 virtual void onForcedClose(); | 25 virtual void onForcedClose(); |
| 23 virtual void onVersionChange(long long old_version, | 26 virtual void onVersionChange(long long old_version, long long new_version); |
| 24 long long new_version); | |
| 25 virtual void onAbort(long long host_transaction_id, | 27 virtual void onAbort(long long host_transaction_id, |
| 26 const WebKit::WebIDBDatabaseError&); | 28 const WebKit::WebIDBDatabaseError&); |
| 27 virtual void onComplete(long long host_transaction_id); | 29 virtual void onComplete(long long host_transaction_id); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 32 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
| 31 int ipc_thread_id_; | 33 int ipc_thread_id_; |
| 32 int ipc_database_callbacks_id_; | 34 int ipc_database_callbacks_id_; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 } // namespace content | 37 } // namespace content |
| 36 | 38 |
| 37 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 39 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| OLD | NEW |