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

Side by Side Diff: extensions/browser/value_store/leveldb_value_store.h

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ 5 #ifndef EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_
6 #define EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ 6 #define EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "base/trace_event/memory_dump_provider.h" 17 #include "base/trace_event/memory_dump_provider.h"
18 #include "extensions/browser/value_store/lazy_leveldb.h" 18 #include "extensions/browser/value_store/lazy_leveldb.h"
19 #include "extensions/browser/value_store/value_store.h" 19 #include "extensions/browser/value_store/value_store.h"
20 #include "third_party/leveldatabase/src/include/leveldb/db.h" 20 #include "third_party/leveldatabase/src/include/leveldb/db.h"
21 21
22 namespace base { 22 namespace base {
23 class HistogramBase; 23 class HistogramBase;
24 } // namespace base 24 } // namespace base
25 25
26 // Value store area, backed by a leveldb database. 26 // Value store area, backed by a leveldb database.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 leveldb::WriteBatch* batch, 74 leveldb::WriteBatch* batch,
75 ValueStoreChangeList* changes); 75 ValueStoreChangeList* changes);
76 76
77 // Commits the changes in |batch| to the database. 77 // Commits the changes in |batch| to the database.
78 ValueStore::Status WriteToDb(leveldb::WriteBatch* batch); 78 ValueStore::Status WriteToDb(leveldb::WriteBatch* batch);
79 79
80 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore); 80 DISALLOW_COPY_AND_ASSIGN(LeveldbValueStore);
81 }; 81 };
82 82
83 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_ 83 #endif // EXTENSIONS_BROWSER_VALUE_STORE_LEVELDB_VALUE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698