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/html_viewer/html_viewer.h" | 5 #include "components/html_viewer/html_viewer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "components/html_viewer/content_handler_impl.h" | 9 #include "components/html_viewer/content_handler_impl.h" |
10 #include "components/html_viewer/global_state.h" | 10 #include "components/html_viewer/global_state.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 bool HTMLViewer::AcceptConnection( | 26 bool HTMLViewer::AcceptConnection( |
27 mojo::ApplicationConnection* connection) { | 27 mojo::ApplicationConnection* connection) { |
28 connection->AddService(this); | 28 connection->AddService(this); |
29 return true; | 29 return true; |
30 } | 30 } |
31 | 31 |
32 void HTMLViewer::Create( | 32 void HTMLViewer::Create( |
33 mojo::ApplicationConnection* connection, | 33 mojo::ApplicationConnection* connection, |
34 mojo::InterfaceRequest<mojo::ContentHandler> request) { | 34 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request) { |
35 new ContentHandlerImpl(global_state_.get(), app_, std::move(request)); | 35 new ContentHandlerImpl(global_state_.get(), app_, std::move(request)); |
36 } | 36 } |
37 | 37 |
38 } // namespace html_viewer | 38 } // namespace html_viewer |
OLD | NEW |