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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void OpenConnection( 74 void OpenConnection(
75 scoped_refptr<IndexedDBCallbacks> callbacks, 75 scoped_refptr<IndexedDBCallbacks> callbacks,
76 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks, 76 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
77 int64 transaction_id, 77 int64 transaction_id,
78 int64 version); 78 int64 version);
79 void OpenConnection( 79 void OpenConnection(
80 scoped_refptr<IndexedDBCallbacks> callbacks, 80 scoped_refptr<IndexedDBCallbacks> callbacks,
81 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks, 81 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
82 int64 transaction_id, 82 int64 transaction_id,
83 int64 version, 83 int64 version,
84 WebKit::WebIDBCallbacks::DataLoss data_loss, 84 blink::WebIDBCallbacks::DataLoss data_loss,
85 std::string data_loss_message); 85 std::string data_loss_message);
86 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks); 86 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks);
87 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; } 87 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; }
88 88
89 void CreateObjectStore(int64 transaction_id, 89 void CreateObjectStore(int64 transaction_id,
90 int64 object_store_id, 90 int64 object_store_id,
91 const string16& name, 91 const string16& name,
92 const IndexedDBKeyPath& key_path, 92 const IndexedDBKeyPath& key_path,
93 bool auto_increment); 93 bool auto_increment);
94 void DeleteObjectStore(int64 transaction_id, int64 object_store_id); 94 void DeleteObjectStore(int64 transaction_id, int64 object_store_id);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 IndexedDBTransaction* transaction); 188 IndexedDBTransaction* transaction);
189 void DeleteObjectStoreOperation( 189 void DeleteObjectStoreOperation(
190 const IndexedDBObjectStoreMetadata& object_store_metadata, 190 const IndexedDBObjectStoreMetadata& object_store_metadata,
191 IndexedDBTransaction* transaction); 191 IndexedDBTransaction* transaction);
192 void DeleteObjectStoreAbortOperation( 192 void DeleteObjectStoreAbortOperation(
193 const IndexedDBObjectStoreMetadata& object_store_metadata, 193 const IndexedDBObjectStoreMetadata& object_store_metadata,
194 IndexedDBTransaction* transaction); 194 IndexedDBTransaction* transaction);
195 void VersionChangeOperation(int64 version, 195 void VersionChangeOperation(int64 version,
196 scoped_refptr<IndexedDBCallbacks> callbacks, 196 scoped_refptr<IndexedDBCallbacks> callbacks,
197 scoped_ptr<IndexedDBConnection> connection, 197 scoped_ptr<IndexedDBConnection> connection,
198 WebKit::WebIDBCallbacks::DataLoss data_loss, 198 blink::WebIDBCallbacks::DataLoss data_loss,
199 std::string data_loss_message, 199 std::string data_loss_message,
200 IndexedDBTransaction* transaction); 200 IndexedDBTransaction* transaction);
201 void VersionChangeAbortOperation(const string16& previous_version, 201 void VersionChangeAbortOperation(const string16& previous_version,
202 int64 previous_int_version, 202 int64 previous_int_version,
203 IndexedDBTransaction* transaction); 203 IndexedDBTransaction* transaction);
204 void CreateIndexOperation(int64 object_store_id, 204 void CreateIndexOperation(int64 object_store_id,
205 const IndexedDBIndexMetadata& index_metadata, 205 const IndexedDBIndexMetadata& index_metadata,
206 IndexedDBTransaction* transaction); 206 IndexedDBTransaction* transaction);
207 void DeleteIndexOperation(int64 object_store_id, 207 void DeleteIndexOperation(int64 object_store_id,
208 const IndexedDBIndexMetadata& index_metadata, 208 const IndexedDBIndexMetadata& index_metadata,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 IndexedDBFactory* factory, 248 IndexedDBFactory* factory,
249 const Identifier& unique_identifier); 249 const Identifier& unique_identifier);
250 ~IndexedDBDatabase(); 250 ~IndexedDBDatabase();
251 251
252 bool IsOpenConnectionBlocked() const; 252 bool IsOpenConnectionBlocked() const;
253 bool OpenInternal(); 253 bool OpenInternal();
254 void RunVersionChangeTransaction(scoped_refptr<IndexedDBCallbacks> callbacks, 254 void RunVersionChangeTransaction(scoped_refptr<IndexedDBCallbacks> callbacks,
255 scoped_ptr<IndexedDBConnection> connection, 255 scoped_ptr<IndexedDBConnection> connection,
256 int64 transaction_id, 256 int64 transaction_id,
257 int64 requested_version, 257 int64 requested_version,
258 WebKit::WebIDBCallbacks::DataLoss data_loss, 258 blink::WebIDBCallbacks::DataLoss data_loss,
259 std::string data_loss_message); 259 std::string data_loss_message);
260 void RunVersionChangeTransactionFinal( 260 void RunVersionChangeTransactionFinal(
261 scoped_refptr<IndexedDBCallbacks> callbacks, 261 scoped_refptr<IndexedDBCallbacks> callbacks,
262 scoped_ptr<IndexedDBConnection> connection, 262 scoped_ptr<IndexedDBConnection> connection,
263 int64 transaction_id, 263 int64 transaction_id,
264 int64 requested_version); 264 int64 requested_version);
265 void RunVersionChangeTransactionFinal( 265 void RunVersionChangeTransactionFinal(
266 scoped_refptr<IndexedDBCallbacks> callbacks, 266 scoped_refptr<IndexedDBCallbacks> callbacks,
267 scoped_ptr<IndexedDBConnection> connection, 267 scoped_ptr<IndexedDBConnection> connection,
268 int64 transaction_id, 268 int64 transaction_id,
269 int64 requested_version, 269 int64 requested_version,
270 WebKit::WebIDBCallbacks::DataLoss data_loss, 270 blink::WebIDBCallbacks::DataLoss data_loss,
271 std::string data_loss_message); 271 std::string data_loss_message);
272 void ProcessPendingCalls(); 272 void ProcessPendingCalls();
273 273
274 bool IsDeleteDatabaseBlocked() const; 274 bool IsDeleteDatabaseBlocked() const;
275 void DeleteDatabaseFinal(scoped_refptr<IndexedDBCallbacks> callbacks); 275 void DeleteDatabaseFinal(scoped_refptr<IndexedDBCallbacks> callbacks);
276 276
277 IndexedDBTransaction* GetTransaction(int64 transaction_id) const; 277 IndexedDBTransaction* GetTransaction(int64 transaction_id) const;
278 278
279 bool ValidateObjectStoreId(int64 object_store_id) const; 279 bool ValidateObjectStoreId(int64 object_store_id) const;
280 bool ValidateObjectStoreIdAndIndexId(int64 object_store_id, 280 bool ValidateObjectStoreIdAndIndexId(int64 object_store_id,
(...skipping 30 matching lines...) Expand all
311 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; 311 typedef std::list<PendingDeleteCall*> PendingDeleteCallList;
312 PendingDeleteCallList pending_delete_calls_; 312 PendingDeleteCallList pending_delete_calls_;
313 313
314 typedef list_set<IndexedDBConnection*> ConnectionSet; 314 typedef list_set<IndexedDBConnection*> ConnectionSet;
315 ConnectionSet connections_; 315 ConnectionSet connections_;
316 }; 316 };
317 317
318 } // namespace content 318 } // namespace content
319 319
320 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 320 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_connection.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