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

Side by Side Diff: content/browser/indexed_db/indexed_db_fake_backing_store.cc

Issue 2506773002: [IndexedDB] Integrating failures and corruption with transaction (Closed)
Patch Set: removed extra log statements Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h" 5 #include "content/browser/indexed_db/indexed_db_fake_backing_store.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "net/url_request/url_request_context_getter.h" 8 #include "net/url_request/url_request_context_getter.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 29 matching lines...) Expand all
40 bool* found) { 40 bool* found) {
41 return leveldb::Status::OK(); 41 return leveldb::Status::OK();
42 } 42 }
43 43
44 leveldb::Status IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData( 44 leveldb::Status IndexedDBFakeBackingStore::CreateIDBDatabaseMetaData(
45 const base::string16& name, 45 const base::string16& name,
46 int64_t version, 46 int64_t version,
47 int64_t* row_id) { 47 int64_t* row_id) {
48 return leveldb::Status::OK(); 48 return leveldb::Status::OK();
49 } 49 }
50 bool IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*, 50 void IndexedDBFakeBackingStore::UpdateIDBDatabaseIntVersion(Transaction*,
51 int64_t row_id, 51 int64_t row_id,
52 int64_t version) { 52 int64_t version) {}
53 return false;
54 }
55 leveldb::Status IndexedDBFakeBackingStore::DeleteDatabase( 53 leveldb::Status IndexedDBFakeBackingStore::DeleteDatabase(
56 const base::string16& name) { 54 const base::string16& name) {
57 return leveldb::Status::OK(); 55 return leveldb::Status::OK();
58 } 56 }
59 57
60 leveldb::Status IndexedDBFakeBackingStore::CreateObjectStore( 58 leveldb::Status IndexedDBFakeBackingStore::CreateObjectStore(
61 Transaction*, 59 Transaction*,
62 int64_t database_id, 60 int64_t database_id,
63 int64_t object_store_id, 61 int64_t object_store_id,
64 const base::string16& name, 62 const base::string16& name,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 scoped_refptr<BlobWriteCallback> callback) { 220 scoped_refptr<BlobWriteCallback> callback) {
223 callback->Run(true); 221 callback->Run(true);
224 return leveldb::Status::OK(); 222 return leveldb::Status::OK();
225 } 223 }
226 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { 224 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() {
227 return result_; 225 return result_;
228 } 226 }
229 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} 227 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {}
230 228
231 } // namespace content 229 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | content/browser/indexed_db/indexed_db_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698