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

Unified Diff: third_party/leveldatabase/env_chromium.h

Issue 803603004: IndexedDB: Reusing leveldb logs when opening database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed UMA logging for NewAppendableFile Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/leveldatabase/env_chromium.h
diff --git a/third_party/leveldatabase/env_chromium.h b/third_party/leveldatabase/env_chromium.h
index 543a4fdceeb40ef055e2bd38c16c536766c74874..23f294ada9e2e846e343a58dc40f252046c2a020 100644
--- a/third_party/leveldatabase/env_chromium.h
+++ b/third_party/leveldatabase/env_chromium.h
@@ -19,6 +19,8 @@
namespace leveldb_env {
+// These entries map to values in tools/metrics/histograms/histograms.xml. New
+// values should be appended at the end.
enum MethodID {
kSequentialFileRead,
kSequentialFileSkip,
@@ -41,6 +43,7 @@ enum MethodID {
kNewLogger,
kSyncParent,
kGetChildren,
+ kNewAppendableFile,
kNumEntries
};
@@ -129,6 +132,8 @@ class ChromiumEnv : public leveldb::Env,
leveldb::RandomAccessFile** result);
virtual leveldb::Status NewWritableFile(const std::string& fname,
leveldb::WritableFile** result);
+ virtual leveldb::Status NewAppendableFile(const std::string& fname,
+ leveldb::WritableFile** result);
virtual leveldb::Status NewLogger(const std::string& fname,
leveldb::Logger** result);

Powered by Google App Engine
This is Rietveld 408576698