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

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

Issue 2233153002: IndexedDB: WrapUnique(new T(args..)) -> MakeUnique<T>(args...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 4 years, 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void OpenConnection(std::unique_ptr<IndexedDBPendingConnection> connection); 82 void OpenConnection(std::unique_ptr<IndexedDBPendingConnection> connection);
83 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks); 83 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks);
84 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; } 84 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; }
85 85
86 void CreateObjectStore(int64_t transaction_id, 86 void CreateObjectStore(int64_t transaction_id,
87 int64_t object_store_id, 87 int64_t object_store_id,
88 const base::string16& name, 88 const base::string16& name,
89 const IndexedDBKeyPath& key_path, 89 const IndexedDBKeyPath& key_path,
90 bool auto_increment); 90 bool auto_increment);
91 void DeleteObjectStore(int64_t transaction_id, int64_t object_store_id); 91 void DeleteObjectStore(int64_t transaction_id, int64_t object_store_id);
92
93 // Returns a pointer to a newly created transaction. The object is owned
94 // by |transaction_coordinator_|.
92 IndexedDBTransaction* CreateTransaction( 95 IndexedDBTransaction* CreateTransaction(
93 int64_t transaction_id, 96 int64_t transaction_id,
94 IndexedDBConnection* connection, 97 IndexedDBConnection* connection,
95 const std::vector<int64_t>& object_store_ids, 98 const std::vector<int64_t>& object_store_ids,
96 blink::WebIDBTransactionMode mode); 99 blink::WebIDBTransactionMode mode);
97 void Close(IndexedDBConnection* connection, bool forced); 100 void Close(IndexedDBConnection* connection, bool forced);
98 void ForceClose(); 101 void ForceClose();
99 102
100 // Ack that one of the connections notified with a "versionchange" event did 103 // Ack that one of the connections notified with a "versionchange" event did
101 // not promptly close. Therefore a "blocked" event should be fired at the 104 // not promptly close. Therefore a "blocked" event should be fired at the
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 bool processing_pending_requests_ = false; 335 bool processing_pending_requests_ = false;
333 336
334 bool experimental_web_platform_features_enabled_; 337 bool experimental_web_platform_features_enabled_;
335 338
336 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); 339 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase);
337 }; 340 };
338 341
339 } // namespace content 342 } // namespace content
340 343
341 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 344 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_cursor.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698