| 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 "extensions/common/mojo/keep_alive.mojom.h" | 9 #include "extensions/common/mojo/keep_alive.mojom.h" |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class BrowserContext; | 13 class BrowserContext; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 class Extension; | 17 class Extension; |
| 18 | 18 |
| 19 // An RAII mojo service implementation for extension keep alives. This adds a | 19 // An RAII mojo service implementation for extension keep alives. This adds a |
| 20 // keep alive on construction and removes it on destruction. | 20 // keep alive on construction and removes it on destruction. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 content::BrowserContext* context_; | 33 content::BrowserContext* context_; |
| 34 const Extension* extension_; | 34 const Extension* extension_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(KeepAliveImpl); | 36 DISALLOW_COPY_AND_ASSIGN(KeepAliveImpl); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace extensions | 39 } // namespace extensions |
| 40 | 40 |
| 41 #endif // EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ | 41 #endif // EXTENSIONS_BROWSER_MOJO_KEEP_ALIVE_IMPL_H_ |
| OLD | NEW |