OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PENDING_CONNECTION_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 11 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
| 12 #include "content/browser/indexed_db/indexed_db_data_loss_info.h" |
12 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 13 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 class IndexedDBCallbacks; | 18 class IndexedDBCallbacks; |
18 class IndexedDBDatabaseCallbacks; | 19 class IndexedDBDatabaseCallbacks; |
19 | 20 |
20 struct CONTENT_EXPORT IndexedDBPendingConnection { | 21 struct CONTENT_EXPORT IndexedDBPendingConnection { |
21 IndexedDBPendingConnection( | 22 IndexedDBPendingConnection( |
22 scoped_refptr<IndexedDBCallbacks> callbacks_in, | 23 scoped_refptr<IndexedDBCallbacks> callbacks_in, |
23 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_in, | 24 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_in, |
24 int child_process_id_in, | 25 int child_process_id_in, |
25 int64_t transaction_id_in, | 26 int64_t transaction_id_in, |
26 int64_t version_in); | 27 int64_t version_in); |
27 IndexedDBPendingConnection(const IndexedDBPendingConnection& other); | 28 IndexedDBPendingConnection(const IndexedDBPendingConnection& other); |
28 ~IndexedDBPendingConnection(); | 29 ~IndexedDBPendingConnection(); |
29 scoped_refptr<IndexedDBCallbacks> callbacks; | 30 scoped_refptr<IndexedDBCallbacks> callbacks; |
30 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; | 31 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; |
31 int child_process_id; | 32 int child_process_id; |
32 int64_t transaction_id; | 33 int64_t transaction_id; |
33 int64_t version; | 34 int64_t version; |
| 35 IndexedDBDataLossInfo data_loss_info; |
34 }; | 36 }; |
35 | 37 |
36 } // namespace content | 38 } // namespace content |
37 | 39 |
38 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ | 40 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ |
OLD | NEW |