| 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_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 10 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseError.h
" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" | |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 | 19 |
| 21 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks { | 20 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks { |
| 22 public: | 21 public: |
| 23 virtual ~IndexedDBCallbacksBase(); | 22 virtual ~IndexedDBCallbacksBase(); |
| 24 | 23 |
| 25 virtual void onError(const WebKit::WebIDBDatabaseError& error); | 24 virtual void onError(const WebKit::WebIDBDatabaseError& error); |
| 26 virtual void onBlocked(long long old_version); | 25 virtual void onBlocked(long long old_version); |
| 27 | 26 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 | 51 |
| 53 class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase { | 52 class IndexedDBCallbacksDatabase : public IndexedDBCallbacksBase { |
| 54 public: | 53 public: |
| 55 IndexedDBCallbacksDatabase( | 54 IndexedDBCallbacksDatabase( |
| 56 IndexedDBDispatcherHost* dispatcher_host, | 55 IndexedDBDispatcherHost* dispatcher_host, |
| 57 int32 ipc_thread_id, | 56 int32 ipc_thread_id, |
| 58 int32 ipc_response_id, | 57 int32 ipc_response_id, |
| 59 int64 host_transaction_id, | 58 int64 host_transaction_id, |
| 60 const GURL& origin_url); | 59 const GURL& origin_url); |
| 61 | 60 |
| 62 virtual void onSuccess(WebKit::WebIDBDatabase* idb_object); | |
| 63 virtual void onSuccess( | 61 virtual void onSuccess( |
| 64 WebKit::WebIDBDatabase* idb_object, | 62 WebKit::WebIDBDatabase* idb_object, |
| 65 const WebKit::WebIDBMetadata& metadata); | 63 const WebKit::WebIDBMetadata& metadata); |
| 66 virtual void onUpgradeNeeded( | 64 virtual void onUpgradeNeeded( |
| 67 long long old_version, | 65 long long old_version, |
| 68 WebKit::WebIDBTransaction* transaction, | |
| 69 WebKit::WebIDBDatabase* database); | |
| 70 virtual void onUpgradeNeeded( | |
| 71 long long old_version, | |
| 72 WebKit::WebIDBDatabase* database, | 66 WebKit::WebIDBDatabase* database, |
| 73 const WebKit::WebIDBMetadata&); | 67 const WebKit::WebIDBMetadata&); |
| 74 | 68 |
| 75 private: | 69 private: |
| 76 int64 host_transaction_id_; | 70 int64 host_transaction_id_; |
| 77 GURL origin_url_; | 71 GURL origin_url_; |
| 78 int32 ipc_database_id_; | 72 int32 ipc_database_id_; |
| 79 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksDatabase); | 73 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacksDatabase); |
| 80 }; | 74 }; |
| 81 | 75 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 virtual void onSuccess(); | 174 virtual void onSuccess(); |
| 181 virtual void onSuccess(const WebKit::WebIDBKey& value); | 175 virtual void onSuccess(const WebKit::WebIDBKey& value); |
| 182 | 176 |
| 183 private: | 177 private: |
| 184 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); | 178 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks); |
| 185 }; | 179 }; |
| 186 | 180 |
| 187 } // namespace content | 181 } // namespace content |
| 188 | 182 |
| 189 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ | 183 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ |
| OLD | NEW |