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

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

Issue 232343004: Pass blob info through from the IPC to the backing store on put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some nits Created 6 years, 8 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
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() 12 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore()
12 : IndexedDBBackingStore(NULL, 13 : IndexedDBBackingStore(NULL,
13 GURL("http://localhost:81"), 14 GURL("http://localhost:81"),
15 base::FilePath(),
14 scoped_ptr<LevelDBDatabase>(), 16 scoped_ptr<LevelDBDatabase>(),
15 scoped_ptr<LevelDBComparator>(), 17 scoped_ptr<LevelDBComparator>(),
16 NULL) {} 18 NULL) {}
17 19
18 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore( 20 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore(
19 IndexedDBFactory* factory, 21 IndexedDBFactory* factory,
20 base::TaskRunner* task_runner) 22 base::TaskRunner* task_runner)
21 : IndexedDBBackingStore(factory, 23 : IndexedDBBackingStore(factory,
22 GURL("http://localhost:81"), 24 GURL("http://localhost:81"),
25 base::FilePath(),
23 scoped_ptr<LevelDBDatabase>(), 26 scoped_ptr<LevelDBDatabase>(),
24 scoped_ptr<LevelDBComparator>(), 27 scoped_ptr<LevelDBComparator>(),
25 task_runner) {} 28 task_runner) {}
26 29
27 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {} 30 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {}
28 31
29 std::vector<base::string16> IndexedDBFakeBackingStore::GetDatabaseNames() { 32 std::vector<base::string16> IndexedDBFakeBackingStore::GetDatabaseNames() {
30 return std::vector<base::string16>(); 33 return std::vector<base::string16>();
31 } 34 }
32 leveldb::Status IndexedDBFakeBackingStore::GetIDBDatabaseMetaData( 35 leveldb::Status IndexedDBFakeBackingStore::GetIDBDatabaseMetaData(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {} 179 void IndexedDBFakeBackingStore::FakeTransaction::Begin() {}
177 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::Commit() { 180 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::Commit() {
178 if (result_) 181 if (result_)
179 return leveldb::Status::OK(); 182 return leveldb::Status::OK();
180 else 183 else
181 return leveldb::Status::IOError("test error"); 184 return leveldb::Status::IOError("test error");
182 } 185 }
183 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} 186 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {}
184 187
185 } // namespace content 188 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698