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

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

Issue 417573004: indexeddb: Removed use of dangling ptr in writeBlobToFileOnIOThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also scoped LocalWriteClosure::task_runner_ Created 6 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
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 base { 12 namespace base {
13 class TaskRunner; 13 class SequencedTaskRunner;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 class IndexedDBFactory; 18 class IndexedDBFactory;
19 19
20 class IndexedDBFakeBackingStore : public IndexedDBBackingStore { 20 class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
21 public: 21 public:
22 IndexedDBFakeBackingStore(); 22 IndexedDBFakeBackingStore();
23 IndexedDBFakeBackingStore(IndexedDBFactory* factory, 23 IndexedDBFakeBackingStore(IndexedDBFactory* factory,
24 base::TaskRunner* task_runner); 24 base::SequencedTaskRunner* task_runner);
25 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status* s) 25 virtual std::vector<base::string16> GetDatabaseNames(leveldb::Status* s)
26 OVERRIDE; 26 OVERRIDE;
27 virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name, 27 virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name,
28 IndexedDBDatabaseMetadata*, 28 IndexedDBDatabaseMetadata*,
29 bool* found) OVERRIDE; 29 bool* found) OVERRIDE;
30 virtual leveldb::Status CreateIDBDatabaseMetaData( 30 virtual leveldb::Status CreateIDBDatabaseMetaData(
31 const base::string16& name, 31 const base::string16& name,
32 const base::string16& version, 32 const base::string16& version,
33 int64 int_version, 33 int64 int_version,
34 int64* row_id) OVERRIDE; 34 int64* row_id) OVERRIDE;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 friend class base::RefCounted<IndexedDBFakeBackingStore>; 152 friend class base::RefCounted<IndexedDBFakeBackingStore>;
153 virtual ~IndexedDBFakeBackingStore(); 153 virtual ~IndexedDBFakeBackingStore();
154 154
155 private: 155 private:
156 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); 156 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore);
157 }; 157 };
158 158
159 } // namespace content 159 } // namespace content
160 160
161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ 161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.cc ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698