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_KEEP_ALIVE_IMPL_H_ | 5 #ifndef EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ |
6 #define EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ | 6 #define EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
10 #include "extensions/browser/extension_registry_observer.h" | 11 #include "extensions/browser/extension_registry_observer.h" |
11 #include "extensions/common/mojo/keep_alive.mojom.h" | 12 #include "extensions/common/mojo/keep_alive.mojom.h" |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 13 #include "mojo/public/cpp/bindings/interface_request.h" |
13 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 class BrowserContext; | 17 class BrowserContext; |
17 } | 18 } |
18 | 19 |
(...skipping 29 matching lines...) Expand all Loading... |
48 const Extension* extension_; | 49 const Extension* extension_; |
49 ScopedObserver<ExtensionRegistry, KeepAliveImpl> extension_registry_observer_; | 50 ScopedObserver<ExtensionRegistry, KeepAliveImpl> extension_registry_observer_; |
50 mojo::StrongBinding<KeepAlive> binding_; | 51 mojo::StrongBinding<KeepAlive> binding_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(KeepAliveImpl); | 53 DISALLOW_COPY_AND_ASSIGN(KeepAliveImpl); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace extensions | 56 } // namespace extensions |
56 | 57 |
57 #endif // EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ | 58 #endif // EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ |
OLD | NEW |