| 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_STASH_BACKEND_H_ | 5 #ifndef EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
| 6 #define EXTENSIONS_BROWSER_STASH_BACKEND_H_ | 6 #define EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "extensions/common/stash.mojom.h" | 12 #include "extensions/common/mojo/stash.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/interface_request.h" | 13 #include "mojo/public/cpp/bindings/interface_request.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 // A backend that provides access to StashService for a single extension. | 17 // A backend that provides access to StashService for a single extension. |
| 18 class StashBackend { | 18 class StashBackend { |
| 19 public: | 19 public: |
| 20 StashBackend(); | 20 StashBackend(); |
| 21 ~StashBackend(); | 21 ~StashBackend(); |
| 22 | 22 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 // The objects that have been stashed. | 35 // The objects that have been stashed. |
| 36 mojo::Array<StashedObjectPtr> stashed_objects_; | 36 mojo::Array<StashedObjectPtr> stashed_objects_; |
| 37 | 37 |
| 38 base::WeakPtrFactory<StashBackend> weak_factory_; | 38 base::WeakPtrFactory<StashBackend> weak_factory_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(StashBackend); | 40 DISALLOW_COPY_AND_ASSIGN(StashBackend); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace extensions | 43 } // namespace extensions |
| 44 | 44 |
| 45 #endif // EXTENSIONS_BROWSER_STASH_BACKEND_H_ | 45 #endif // EXTENSIONS_BROWSER_MOJO_STASH_BACKEND_H_ |
| OLD | NEW |