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

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

Issue 862723002: leveldb: Moved to LevelDBEnv.IOError.BFE histogram entries. (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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 NewLogger(const std::string& fname, 134 virtual leveldb::Status NewLogger(const std::string& fname,
135 leveldb::Logger** result); 135 leveldb::Logger** result);
136 136
137 protected: 137 protected:
138 virtual void DidSyncDir(const std::string& fname); 138 virtual void DidSyncDir(const std::string& fname);
139 139
140 std::string name_; 140 std::string name_;
141 std::string uma_ioerror_base_name_;
141 bool make_backup_; 142 bool make_backup_;
142 143
143 private: 144 private:
144 static const char* FileErrorString(base::File::Error error); 145 static const char* FileErrorString(base::File::Error error);
145 146
146 virtual void DidCreateNewFile(const std::string& fname); 147 virtual void DidCreateNewFile(const std::string& fname);
147 virtual bool DoesDirNeedSync(const std::string& fname); 148 virtual bool DoesDirNeedSync(const std::string& fname);
148 virtual void RecordErrorAt(MethodID method) const; 149 virtual void RecordErrorAt(MethodID method) const;
149 virtual void RecordOSError(MethodID method, 150 virtual void RecordOSError(MethodID method,
150 base::File::Error error) const; 151 base::File::Error error) const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void (*function)(void*); 206 void (*function)(void*);
206 }; 207 };
207 typedef std::deque<BGItem> BGQueue; 208 typedef std::deque<BGItem> BGQueue;
208 BGQueue queue_; 209 BGQueue queue_;
209 LockTable locks_; 210 LockTable locks_;
210 }; 211 };
211 212
212 } // namespace leveldb_env 213 } // namespace leveldb_env
213 214
214 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 215 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/leveldatabase/env_chromium.cc » ('j') | third_party/leveldatabase/env_chromium.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698