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

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

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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_VALUE_STORE_FRONTEND_H_ 5 #ifndef EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_
6 #define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_ 6 #define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "extensions/browser/value_store/value_store.h" 17 #include "extensions/browser/value_store/value_store.h"
18 18
19 namespace base {
20 class FilePath;
21 }
22
23 namespace extensions { 19 namespace extensions {
24 class ValueStoreFactory; 20 class ValueStoreFactory;
25 } // namespace extensions 21 } // namespace extensions
26 22
27 // A frontend for a LeveldbValueStore, for use on the UI thread. 23 // A frontend for a LeveldbValueStore, for use on the UI thread.
28 class ValueStoreFrontend 24 class ValueStoreFrontend
29 : public base::SupportsWeakPtr<ValueStoreFrontend>, 25 : public base::SupportsWeakPtr<ValueStoreFrontend>,
30 public base::NonThreadSafe { 26 public base::NonThreadSafe {
31 public: 27 public:
32 // The kind of extensions data stored in a backend. 28 // The kind of extensions data stored in a backend.
(...skipping 20 matching lines...) Expand all
53 class Backend; 49 class Backend;
54 50
55 // A helper class to manage lifetime of the backing ValueStore, which lives 51 // A helper class to manage lifetime of the backing ValueStore, which lives
56 // on the FILE thread. 52 // on the FILE thread.
57 scoped_refptr<Backend> backend_; 53 scoped_refptr<Backend> backend_;
58 54
59 DISALLOW_COPY_AND_ASSIGN(ValueStoreFrontend); 55 DISALLOW_COPY_AND_ASSIGN(ValueStoreFrontend);
60 }; 56 };
61 57
62 #endif // EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_ 58 #endif // EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FRONTEND_H_
OLDNEW
« no previous file with comments | « extensions/browser/value_store/leveldb_value_store.h ('k') | extensions/browser/warning_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698