OLD | NEW |
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_MOJO_STASH_BACKEND_H_ | 5 #ifndef EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
6 #define EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ | 6 #define EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "extensions/common/mojo/stash.mojom.h" | 13 #include "extensions/common/mojo/stash.mojom.h" |
13 #include "mojo/public/cpp/bindings/interface_request.h" | 14 #include "mojo/public/cpp/bindings/interface_request.h" |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 // A backend that provides access to StashService for a single extension. | 18 // A backend that provides access to StashService for a single extension. |
18 class StashBackend { | 19 class StashBackend { |
19 public: | 20 public: |
20 explicit StashBackend(const base::Closure& on_handle_readable); | 21 explicit StashBackend(const base::Closure& on_handle_readable); |
(...skipping 26 matching lines...) Expand all Loading... |
47 bool has_notified_; | 48 bool has_notified_; |
48 | 49 |
49 base::WeakPtrFactory<StashBackend> weak_factory_; | 50 base::WeakPtrFactory<StashBackend> weak_factory_; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(StashBackend); | 52 DISALLOW_COPY_AND_ASSIGN(StashBackend); |
52 }; | 53 }; |
53 | 54 |
54 } // namespace extensions | 55 } // namespace extensions |
55 | 56 |
56 #endif // EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ | 57 #endif // EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
OLD | NEW |