OLD | NEW |
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" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 public: | 137 public: |
138 FakeTransaction(leveldb::Status phase_two_result); | 138 FakeTransaction(leveldb::Status phase_two_result); |
139 virtual void Begin() OVERRIDE; | 139 virtual void Begin() OVERRIDE; |
140 virtual leveldb::Status CommitPhaseOne( | 140 virtual leveldb::Status CommitPhaseOne( |
141 scoped_refptr<BlobWriteCallback>) OVERRIDE; | 141 scoped_refptr<BlobWriteCallback>) OVERRIDE; |
142 virtual leveldb::Status CommitPhaseTwo() OVERRIDE; | 142 virtual leveldb::Status CommitPhaseTwo() OVERRIDE; |
143 virtual void Rollback() OVERRIDE; | 143 virtual void Rollback() OVERRIDE; |
144 | 144 |
145 private: | 145 private: |
146 leveldb::Status result_; | 146 leveldb::Status result_; |
| 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(FakeTransaction); |
147 }; | 149 }; |
148 | 150 |
149 protected: | 151 protected: |
150 friend class base::RefCounted<IndexedDBFakeBackingStore>; | 152 friend class base::RefCounted<IndexedDBFakeBackingStore>; |
151 virtual ~IndexedDBFakeBackingStore(); | 153 virtual ~IndexedDBFakeBackingStore(); |
| 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(IndexedDBFakeBackingStore); |
152 }; | 156 }; |
153 | 157 |
154 } // namespace content | 158 } // namespace content |
155 | 159 |
156 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ | 160 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FAKE_BACKING_STORE_H_ |
OLD | NEW |