| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ | 5 #ifndef COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ |
| 6 #define COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ | 6 #define COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/web_view/public/interfaces/web_view.mojom.h" | 9 #include "components/web_view/public/interfaces/web_view.mojom.h" |
| 10 #include "mojo/application/public/cpp/application_delegate.h" | |
| 11 #include "mojo/application/public/cpp/interface_factory.h" | |
| 12 #include "mojo/common/weak_binding_set.h" | 10 #include "mojo/common/weak_binding_set.h" |
| 13 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 11 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
| 12 #include "mojo/shell/public/cpp/application_delegate.h" |
| 13 #include "mojo/shell/public/cpp/interface_factory.h" |
| 14 | 14 |
| 15 namespace web_view { | 15 namespace web_view { |
| 16 | 16 |
| 17 class WebViewApplicationDelegate | 17 class WebViewApplicationDelegate |
| 18 : public mojo::ApplicationDelegate, | 18 : public mojo::ApplicationDelegate, |
| 19 public mojom::WebViewFactory, | 19 public mojom::WebViewFactory, |
| 20 public mojo::InterfaceFactory<mojom::WebViewFactory> { | 20 public mojo::InterfaceFactory<mojom::WebViewFactory> { |
| 21 public: | 21 public: |
| 22 WebViewApplicationDelegate(); | 22 WebViewApplicationDelegate(); |
| 23 ~WebViewApplicationDelegate() override; | 23 ~WebViewApplicationDelegate() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 40 mojo::TracingImpl tracing_; | 40 mojo::TracingImpl tracing_; |
| 41 | 41 |
| 42 mojo::WeakBindingSet<WebViewFactory> factory_bindings_; | 42 mojo::WeakBindingSet<WebViewFactory> factory_bindings_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(WebViewApplicationDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(WebViewApplicationDelegate); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace web_view | 47 } // namespace web_view |
| 48 | 48 |
| 49 #endif // COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ | 49 #endif // COMPONENTS_WEB_VIEW_WEB_VIEW_APPLICATION_DELEGATE_H_ |
| OLD | NEW |