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

Side by Side Diff: content/browser/indexed_db/leveldb/leveldb_database.h

Issue 1180803003: IndexedDB: Added UMA stat to measure time to close backing store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 Chromium Authors. All rights reserved. 1 // Copyright (c) 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_LEVELDB_LEVELDB_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const LevelDBComparator* Comparator() const; 94 const LevelDBComparator* Comparator() const;
95 void Compact(const base::StringPiece& start, const base::StringPiece& stop); 95 void Compact(const base::StringPiece& start, const base::StringPiece& stop);
96 void CompactAll(); 96 void CompactAll();
97 97
98 protected: 98 protected:
99 LevelDBDatabase(); 99 LevelDBDatabase();
100 100
101 private: 101 private:
102 friend class LevelDBSnapshot; 102 friend class LevelDBSnapshot;
103 103
104 void CloseDatabase();
105
104 scoped_ptr<leveldb::Env> env_; 106 scoped_ptr<leveldb::Env> env_;
105 scoped_ptr<leveldb::Comparator> comparator_adapter_; 107 scoped_ptr<leveldb::Comparator> comparator_adapter_;
106 scoped_ptr<leveldb::DB> db_; 108 scoped_ptr<leveldb::DB> db_;
107 scoped_ptr<const leveldb::FilterPolicy> filter_policy_; 109 scoped_ptr<const leveldb::FilterPolicy> filter_policy_;
108 const LevelDBComparator* comparator_; 110 const LevelDBComparator* comparator_;
109 }; 111 };
110 112
111 } // namespace content 113 } // namespace content
112 114
113 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 115 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698