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 "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 11 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
11 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 12 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 class IndexedDBCallbacks; | 17 class IndexedDBCallbacks; |
17 class IndexedDBDatabaseCallbacks; | 18 class IndexedDBDatabaseCallbacks; |
18 | 19 |
19 struct CONTENT_EXPORT IndexedDBPendingConnection { | 20 struct CONTENT_EXPORT IndexedDBPendingConnection { |
20 IndexedDBPendingConnection( | 21 IndexedDBPendingConnection( |
21 scoped_refptr<IndexedDBCallbacks> callbacks_in, | 22 scoped_refptr<IndexedDBCallbacks> callbacks_in, |
22 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_in, | 23 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_in, |
23 int child_process_id_in, | 24 int child_process_id_in, |
24 int64 transaction_id_in, | 25 int64_t transaction_id_in, |
25 int64 version_in); | 26 int64_t version_in); |
26 ~IndexedDBPendingConnection(); | 27 ~IndexedDBPendingConnection(); |
27 scoped_refptr<IndexedDBCallbacks> callbacks; | 28 scoped_refptr<IndexedDBCallbacks> callbacks; |
28 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; | 29 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks; |
29 int child_process_id; | 30 int child_process_id; |
30 int64 transaction_id; | 31 int64_t transaction_id; |
31 int64 version; | 32 int64_t version; |
32 }; | 33 }; |
33 | 34 |
34 } // namespace content | 35 } // namespace content |
35 | 36 |
36 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ | 37 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_PENDING_CONNECTION_H_ |
OLD | NEW |