| 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_data_loss_info.h" |
| 13 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 13 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "url/origin.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 class IndexedDBCallbacks; | 19 class IndexedDBCallbacks; |
| 19 class IndexedDBDatabaseCallbacks; | 20 class IndexedDBDatabaseCallbacks; |
| 20 | 21 |
| 21 struct CONTENT_EXPORT IndexedDBPendingConnection { | 22 struct CONTENT_EXPORT IndexedDBPendingConnection { |
| 22 IndexedDBPendingConnection( | 23 IndexedDBPendingConnection( |
| 23 scoped_refptr<IndexedDBCallbacks> callbacks_in, | 24 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 24 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_in, | 25 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks, |
| 25 int child_process_id_in, | 26 int child_process_id, |
| 26 int64_t transaction_id_in, | 27 int64_t transaction_id, |
| 27 int64_t version_in); | 28 int64_t version); |
| 28 IndexedDBPendingConnection(const IndexedDBPendingConnection& other); | 29 IndexedDBPendingConnection(const IndexedDBPendingConnection& other); |
| 29 ~IndexedDBPendingConnection(); | 30 ~IndexedDBPendingConnection(); |
| 30 scoped_refptr<IndexedDBCallbacks> callbacks; | 31 scoped_refptr<IndexedDBCallbacks> callbacks; |
| 31 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; | 32 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; |
| 32 int child_process_id; | 33 int child_process_id; |
| 33 int64_t transaction_id; | 34 int64_t transaction_id; |
| 34 int64_t version; | 35 int64_t version; |
| 35 IndexedDBDataLossInfo data_loss_info; | 36 IndexedDBDataLossInfo data_loss_info; |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 } // namespace content | 39 } // namespace content |
| 39 | 40 |
| 40 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ | 41 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ |
| OLD | NEW |