Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / indexed_db / leveldb / leveldb_factory.h
blob31974ee9098f3440603c9aa4b9876348abc9f885
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h"
10 #include "third_party/leveldatabase/src/include/leveldb/status.h"
12 namespace base {
13 class FilePath;
16 namespace content {
18 class LevelDBComparator;
19 class LevelDBDatabase;
21 class CONTENT_EXPORT LevelDBFactory {
22 public:
23 virtual ~LevelDBFactory() {}
24 virtual leveldb::Status OpenLevelDB(const base::FilePath& file_name,
25 const LevelDBComparator* comparator,
26 scoped_ptr<LevelDBDatabase>* db,
27 bool* is_disk_full) = 0;
28 virtual leveldb::Status DestroyLevelDB(const base::FilePath& file_name) = 0;
31 } // namespace content
33 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_