| 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/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" |
| 10 | 10 |
| 11 class IndexedDBDispatcherHost; | 11 class IndexedDBDispatcherHost; |
| 12 | 12 |
| 13 class IndexedDBDatabaseCallbacks | 13 class IndexedDBDatabaseCallbacks |
| 14 : public WebKit::WebIDBDatabaseCallbacks { | 14 : public WebKit::WebIDBDatabaseCallbacks { |
| 15 public: | 15 public: |
| 16 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 16 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, |
| 17 int thread_id, | 17 int thread_id, |
| 18 int database_id); | 18 int database_id); |
| 19 | 19 |
| 20 virtual ~IndexedDBDatabaseCallbacks(); | 20 virtual ~IndexedDBDatabaseCallbacks(); |
| 21 | 21 |
| 22 virtual void onForcedClose(); |
| 22 virtual void onVersionChange(long long old_version, | 23 virtual void onVersionChange(long long old_version, |
| 23 long long new_version); | 24 long long new_version); |
| 24 virtual void onVersionChange(const WebKit::WebString& requested_version); | 25 virtual void onVersionChange(const WebKit::WebString& requested_version); |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 28 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
| 28 int thread_id_; | 29 int thread_id_; |
| 29 int database_id_; | 30 int database_id_; |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 33 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
| OLD | NEW |