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

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

Issue 303073002: Change instances of s.IsCorruption() to leveldb_env::IsCorruption(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 leveldb::Status IndexedDBFakeBackingStore::CreateObjectStore( 63 leveldb::Status IndexedDBFakeBackingStore::CreateObjectStore(
64 Transaction*, 64 Transaction*,
65 int64 database_id, 65 int64 database_id,
66 int64 object_store_id, 66 int64 object_store_id,
67 const base::string16& name, 67 const base::string16& name,
68 const IndexedDBKeyPath&, 68 const IndexedDBKeyPath&,
69 bool auto_increment) { 69 bool auto_increment) {
70 return leveldb::Status::OK(); 70 return leveldb::Status::OK();
71 } 71 }
72 72
73 leveldb::Status IndexedDBFakeBackingStore::DeleteObjectStore(
74 Transaction* transaction,
75 int64 database_id,
76 int64 object_store_id) {
77 return leveldb::Status::OK();
78 }
79
73 leveldb::Status IndexedDBFakeBackingStore::PutRecord( 80 leveldb::Status IndexedDBFakeBackingStore::PutRecord(
74 IndexedDBBackingStore::Transaction* transaction, 81 IndexedDBBackingStore::Transaction* transaction,
75 int64 database_id, 82 int64 database_id,
76 int64 object_store_id, 83 int64 object_store_id,
77 const IndexedDBKey& key, 84 const IndexedDBKey& key,
78 IndexedDBValue& value, 85 IndexedDBValue& value,
79 ScopedVector<webkit_blob::BlobDataHandle>* handles, 86 ScopedVector<webkit_blob::BlobDataHandle>* handles,
80 RecordIdentifier* record) { 87 RecordIdentifier* record) {
81 return leveldb::Status::OK(); 88 return leveldb::Status::OK();
82 } 89 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {} 205 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {}
199 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::Commit() { 206 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::Commit() {
200 if (result_) 207 if (result_)
201 return leveldb::Status::OK(); 208 return leveldb::Status::OK();
202 else 209 else
203 return leveldb::Status::IOError("test error"); 210 return leveldb::Status::IOError("test error");
204 } 211 }
205 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} 212 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {}
206 213
207 } // namespace content 214 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698