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

Side by Side Diff: third_party/leveldatabase/env_chromium.h

Issue 852073002: IndexedDB: Revert change to enable reuse of leveldb manifest in IDB (take 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | third_party/leveldatabase/env_chromium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The LevelDB Authors. All rights reserved. 1 // Copyright (c) 2013 The LevelDB 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. See the AUTHORS file for names of contributors. 3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4 4
5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual leveldb::Status GetTestDirectory(std::string* path); 124 virtual leveldb::Status GetTestDirectory(std::string* path);
125 virtual uint64_t NowMicros(); 125 virtual uint64_t NowMicros();
126 virtual void SleepForMicroseconds(int micros); 126 virtual void SleepForMicroseconds(int micros);
127 virtual leveldb::Status NewSequentialFile(const std::string& fname, 127 virtual leveldb::Status NewSequentialFile(const std::string& fname,
128 leveldb::SequentialFile** result); 128 leveldb::SequentialFile** result);
129 virtual leveldb::Status NewRandomAccessFile( 129 virtual leveldb::Status NewRandomAccessFile(
130 const std::string& fname, 130 const std::string& fname,
131 leveldb::RandomAccessFile** result); 131 leveldb::RandomAccessFile** result);
132 virtual leveldb::Status NewWritableFile(const std::string& fname, 132 virtual leveldb::Status NewWritableFile(const std::string& fname,
133 leveldb::WritableFile** result); 133 leveldb::WritableFile** result);
134 virtual leveldb::Status NewAppendableFile(const std::string& fname,
135 leveldb::WritableFile** result);
136 virtual leveldb::Status NewLogger(const std::string& fname, 134 virtual leveldb::Status NewLogger(const std::string& fname,
137 leveldb::Logger** result); 135 leveldb::Logger** result);
138 136
139 protected: 137 protected:
140 virtual void DidSyncDir(const std::string& fname); 138 virtual void DidSyncDir(const std::string& fname);
141 139
142 std::string name_; 140 std::string name_;
143 bool make_backup_; 141 bool make_backup_;
144 142
145 private: 143 private:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void (*function)(void*); 205 void (*function)(void*);
208 }; 206 };
209 typedef std::deque<BGItem> BGQueue; 207 typedef std::deque<BGItem> BGQueue;
210 BGQueue queue_; 208 BGQueue queue_;
211 LockTable locks_; 209 LockTable locks_;
212 }; 210 };
213 211
214 } // namespace leveldb_env 212 } // namespace leveldb_env
215 213
216 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 214 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/leveldatabase/env_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698