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 #include "components/web_view/web_view_application_delegate.h" | 5 #include "components/web_view/web_view_application_delegate.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "components/web_view/web_view_impl.h" | 9 #include "components/web_view/web_view_impl.h" |
10 #include "mojo/application/public/cpp/application_connection.h" | 10 #include "mojo/shell/public/cpp/application_connection.h" |
11 | 11 |
12 namespace web_view { | 12 namespace web_view { |
13 | 13 |
14 WebViewApplicationDelegate::WebViewApplicationDelegate() : app_(nullptr) {} | 14 WebViewApplicationDelegate::WebViewApplicationDelegate() : app_(nullptr) {} |
15 WebViewApplicationDelegate::~WebViewApplicationDelegate() {} | 15 WebViewApplicationDelegate::~WebViewApplicationDelegate() {} |
16 | 16 |
17 void WebViewApplicationDelegate::Initialize(mojo::ApplicationImpl* app) { | 17 void WebViewApplicationDelegate::Initialize(mojo::ApplicationImpl* app) { |
18 app_ = app; | 18 app_ = app; |
19 tracing_.Initialize(app); | 19 tracing_.Initialize(app); |
20 } | 20 } |
(...skipping 10 matching lines...) Expand all Loading... |
31 new WebViewImpl(app_, std::move(client), std::move(web_view)); | 31 new WebViewImpl(app_, std::move(client), std::move(web_view)); |
32 } | 32 } |
33 | 33 |
34 void WebViewApplicationDelegate::Create( | 34 void WebViewApplicationDelegate::Create( |
35 mojo::ApplicationConnection* connection, | 35 mojo::ApplicationConnection* connection, |
36 mojo::InterfaceRequest<mojom::WebViewFactory> request) { | 36 mojo::InterfaceRequest<mojom::WebViewFactory> request) { |
37 factory_bindings_.AddBinding(this, std::move(request)); | 37 factory_bindings_.AddBinding(this, std::move(request)); |
38 } | 38 } |
39 | 39 |
40 } // namespace web_view | 40 } // namespace web_view |
OLD | NEW |