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

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

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)
Patch Set: made sure size is 0'd out Created 3 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
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {} 218 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {}
219 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseOne( 219 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseOne(
220 scoped_refptr<BlobWriteCallback> callback) { 220 scoped_refptr<BlobWriteCallback> callback) {
221 callback->Run(IndexedDBBackingStore::BlobWriteResult::SUCCESS_SYNC); 221 callback->Run(IndexedDBBackingStore::BlobWriteResult::SUCCESS_SYNC);
222 return leveldb::Status::OK(); 222 return leveldb::Status::OK();
223 } 223 }
224 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { 224 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() {
225 return result_; 225 return result_;
226 } 226 }
227 uint64_t IndexedDBFakeBackingStore::FakeTransaction::GetTransactionSize() {
228 return 0;
229 }
227 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} 230 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {}
228 231
229 } // namespace content 232 } // 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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698