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

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

Issue 17462005: IndexedDB: Replace transaction's AVLTree with std::map (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased; store node pointers in map to avoid copies Created 7 years, 4 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 | Annotate | Revision Log
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 #include <vector>
10 9
11 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
14 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
15 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
16 #include "third_party/leveldatabase/src/include/leveldb/status.h" 15 #include "third_party/leveldatabase/src/include/leveldb/status.h"
17 16
18 namespace leveldb { 17 namespace leveldb {
19 class Comparator; 18 class Comparator;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 scoped_ptr<leveldb::Env> env_; 70 scoped_ptr<leveldb::Env> env_;
72 scoped_ptr<leveldb::Comparator> comparator_adapter_; 71 scoped_ptr<leveldb::Comparator> comparator_adapter_;
73 scoped_ptr<leveldb::DB> db_; 72 scoped_ptr<leveldb::DB> db_;
74 const LevelDBComparator* comparator_; 73 const LevelDBComparator* comparator_;
75 }; 74 };
76 75
77 } // namespace content 76 } // namespace content
78 77
79 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 78 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698