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_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 44 IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host, |
45 int32 ipc_thread_id, | 45 int32 ipc_thread_id, |
46 int32 ipc_callbacks_id, | 46 int32 ipc_callbacks_id, |
47 int32 ipc_database_callbacks_id, | 47 int32 ipc_database_callbacks_id, |
48 int64 host_transaction_id, | 48 int64 host_transaction_id, |
49 const GURL& origin_url); | 49 const GURL& origin_url); |
50 | 50 |
51 virtual void OnError(const IndexedDBDatabaseError& error); | 51 virtual void OnError(const IndexedDBDatabaseError& error); |
52 | 52 |
53 // IndexedDBFactory::GetDatabaseNames | 53 // IndexedDBFactory::GetDatabaseNames |
54 virtual void OnSuccess(const std::vector<string16>& string); | 54 virtual void OnSuccess(const std::vector<base::string16>& string); |
55 | 55 |
56 // IndexedDBFactory::Open / DeleteDatabase | 56 // IndexedDBFactory::Open / DeleteDatabase |
57 virtual void OnBlocked(int64 existing_version); | 57 virtual void OnBlocked(int64 existing_version); |
58 | 58 |
59 // IndexedDBFactory::Open | 59 // IndexedDBFactory::Open |
60 virtual void OnUpgradeNeeded( | 60 virtual void OnUpgradeNeeded( |
61 int64 old_version, | 61 int64 old_version, |
62 scoped_ptr<IndexedDBConnection> connection, | 62 scoped_ptr<IndexedDBConnection> connection, |
63 const content::IndexedDBDatabaseMetadata& metadata, | 63 const content::IndexedDBDatabaseMetadata& metadata, |
64 blink::WebIDBDataLoss data_loss, | 64 blink::WebIDBDataLoss data_loss, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // IndexedDBDatabase callbacks ------------------------ | 118 // IndexedDBDatabase callbacks ------------------------ |
119 int64 host_transaction_id_; | 119 int64 host_transaction_id_; |
120 GURL origin_url_; | 120 GURL origin_url_; |
121 int32 ipc_database_id_; | 121 int32 ipc_database_id_; |
122 int32 ipc_database_callbacks_id_; | 122 int32 ipc_database_callbacks_id_; |
123 }; | 123 }; |
124 | 124 |
125 } // namespace content | 125 } // namespace content |
126 | 126 |
127 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ | 127 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ |
OLD | NEW |