[IndexedDB] Adding traces, perf tests
[chromium-blink-merge.git] / content / browser / indexed_db / leveldb / leveldb_env.cc
blob10c0c0702907b5ba0943050252c0ce405aed4fe7
1 // Copyright 2015 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 #include "content/browser/indexed_db/leveldb/leveldb_env.h"
7 namespace {
9 // Static member initialization.
10 base::LazyInstance<content::LevelDBEnv>::Leaky g_leveldb_env =
11 LAZY_INSTANCE_INITIALIZER;
13 } // namespace
15 namespace content {
17 LevelDBEnv::LevelDBEnv()
18 : ChromiumEnv("LevelDBEnv.IDB", true /* backup tables */) {
21 LevelDBEnv* LevelDBEnv::Get() {
22 return g_leveldb_env.Pointer();
25 } // namespace content