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

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

Issue 1841553002: IndexedDB: Use url::Origin rather than GURL for representing origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-idb
Patch Set: Rebased Created 4 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
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 <memory> 7 #include <memory>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore() 13 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore()
14 : IndexedDBBackingStore(NULL /* indexed_db_factory */, 14 : IndexedDBBackingStore(NULL /* indexed_db_factory */,
15 GURL("http://localhost:81"), 15 url::Origin(GURL("http://localhost:81")),
16 base::FilePath(), 16 base::FilePath(),
17 NULL /* request_context */, 17 NULL /* request_context */,
18 std::unique_ptr<LevelDBDatabase>(), 18 std::unique_ptr<LevelDBDatabase>(),
19 std::unique_ptr<LevelDBComparator>(), 19 std::unique_ptr<LevelDBComparator>(),
20 NULL /* task_runner */) {} 20 NULL /* task_runner */) {}
21 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore( 21 IndexedDBFakeBackingStore::IndexedDBFakeBackingStore(
22 IndexedDBFactory* factory, 22 IndexedDBFactory* factory,
23 base::SequencedTaskRunner* task_runner) 23 base::SequencedTaskRunner* task_runner)
24 : IndexedDBBackingStore(factory, 24 : IndexedDBBackingStore(factory,
25 GURL("http://localhost:81"), 25 url::Origin(GURL("http://localhost:81")),
26 base::FilePath(), 26 base::FilePath(),
27 NULL /* request_context */, 27 NULL /* request_context */,
28 std::unique_ptr<LevelDBDatabase>(), 28 std::unique_ptr<LevelDBDatabase>(),
29 std::unique_ptr<LevelDBComparator>(), 29 std::unique_ptr<LevelDBComparator>(),
30 task_runner) {} 30 task_runner) {}
31 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {} 31 IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {}
32 32
33 std::vector<base::string16> IndexedDBFakeBackingStore::GetDatabaseNames( 33 std::vector<base::string16> IndexedDBFakeBackingStore::GetDatabaseNames(
34 leveldb::Status* s) { 34 leveldb::Status* s) {
35 *s = leveldb::Status::OK(); 35 *s = leveldb::Status::OK();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 scoped_refptr<BlobWriteCallback> callback) { 207 scoped_refptr<BlobWriteCallback> callback) {
208 callback->Run(true); 208 callback->Run(true);
209 return leveldb::Status::OK(); 209 return leveldb::Status::OK();
210 } 210 }
211 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() { 211 leveldb::Status IndexedDBFakeBackingStore::FakeTransaction::CommitPhaseTwo() {
212 return result_; 212 return result_;
213 } 213 }
214 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {} 214 void IndexedDBFakeBackingStore::FakeTransaction::Rollback() {}
215 215
216 } // namespace content 216 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | content/browser/indexed_db/indexed_db_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698