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

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

Issue 16870007: Switch database/file_identifier to std::string, remove createFromDatabaseIdentifier calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/browser/indexed_db/indexed_db_backing_store.h" 10 #include "content/browser/indexed_db/indexed_db_backing_store.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { 14 class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
15 public: 15 public:
16 IndexedDBFakeBackingStore() 16 IndexedDBFakeBackingStore()
17 : IndexedDBBackingStore(string16(), 17 : IndexedDBBackingStore(std::string(),
18 scoped_ptr<LevelDBDatabase>(), 18 scoped_ptr<LevelDBDatabase>(),
19 scoped_ptr<LevelDBComparator>()) {} 19 scoped_ptr<LevelDBComparator>()) {}
20 virtual std::vector<string16> GetDatabaseNames() OVERRIDE; 20 virtual std::vector<string16> GetDatabaseNames() OVERRIDE;
21 virtual bool GetIDBDatabaseMetaData(const string16& name, 21 virtual bool GetIDBDatabaseMetaData(const string16& name,
22 IndexedDBDatabaseMetadata*, 22 IndexedDBDatabaseMetadata*,
23 bool* found) OVERRIDE; 23 bool* found) OVERRIDE;
24 virtual bool CreateIDBDatabaseMetaData(const string16& name, 24 virtual bool CreateIDBDatabaseMetaData(const string16& name,
25 const string16& version, 25 const string16& version,
26 int64 int_version, 26 int64 int_version,
27 int64* row_id) OVERRIDE; 27 int64* row_id) OVERRIDE;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 OVERRIDE; 111 OVERRIDE;
112 112
113 protected: 113 protected:
114 friend class base::RefCounted<IndexedDBFakeBackingStore>; 114 friend class base::RefCounted<IndexedDBFakeBackingStore>;
115 virtual ~IndexedDBFakeBackingStore(); 115 virtual ~IndexedDBFakeBackingStore();
116 }; 116 };
117 117
118 } // namespace content 118 } // namespace content
119 119
120 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ 120 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.cc ('k') | content/browser/indexed_db/indexed_db_leveldb_coding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698