| 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/document_resource_waiter.h" | 5 #include "components/html_viewer/document_resource_waiter.h" |
| 6 | 6 |
| 7 #include "components/html_viewer/global_state.h" | 7 #include "components/html_viewer/global_state.h" |
| 8 #include "components/html_viewer/html_document.h" | 8 #include "components/html_viewer/html_document.h" |
| 9 #include "components/html_viewer/html_frame_tree_manager.h" | 9 #include "components/html_viewer/html_frame_tree_manager.h" |
| 10 #include "components/view_manager/public/cpp/view.h" | 10 #include "components/mus/public/cpp/view.h" |
| 11 | 11 |
| 12 using web_view::ViewConnectType; | 12 using web_view::ViewConnectType; |
| 13 | 13 |
| 14 namespace html_viewer { | 14 namespace html_viewer { |
| 15 | 15 |
| 16 DocumentResourceWaiter::DocumentResourceWaiter(GlobalState* global_state, | 16 DocumentResourceWaiter::DocumentResourceWaiter(GlobalState* global_state, |
| 17 mojo::URLResponsePtr response, | 17 mojo::URLResponsePtr response, |
| 18 HTMLDocument* document) | 18 HTMLDocument* document) |
| 19 : global_state_(global_state), | 19 : global_state_(global_state), |
| 20 document_(document), | 20 document_(document), |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { | 187 void DocumentResourceWaiter::OnHTMLFrameTreeManagerChangeIdAdvanced() { |
| 188 UpdateIsReady(); | 188 UpdateIsReady(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { | 191 void DocumentResourceWaiter::OnHTMLFrameTreeManagerDestroyed() { |
| 192 document_->Destroy(); // This destroys us. | 192 document_->Destroy(); // This destroys us. |
| 193 } | 193 } |
| 194 | 194 |
| 195 } // namespace html_viewer | 195 } // namespace html_viewer |
| OLD | NEW |