Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: content/browser/indexed_db/indexed_db_pending_connection.h

Issue 2140193002: IndexedDB: Saving data loss status in IndexedDBPendingConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idb-data-loss
Patch Set: Deleted commented out code. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | content/browser/indexed_db/indexed_db_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698