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/pending_web_view_load.h" | 5 #include "components/web_view/pending_web_view_load.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "components/web_view/frame_connection.h" | 9 #include "components/web_view/frame_connection.h" |
10 #include "components/web_view/web_view_impl.h" | 10 #include "components/web_view/web_view_impl.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 frame_connection_.reset(new FrameConnection); | 24 frame_connection_.reset(new FrameConnection); |
25 frame_connection_->Init(web_view_->app_, request.Pass(), | 25 frame_connection_->Init(web_view_->app_, request.Pass(), |
26 base::Bind(&PendingWebViewLoad::OnGotContentHandlerID, | 26 base::Bind(&PendingWebViewLoad::OnGotContentHandlerID, |
27 base::Unretained(this))); | 27 base::Unretained(this))); |
28 } | 28 } |
29 | 29 |
30 void PendingWebViewLoad::OnGotContentHandlerID() { | 30 void PendingWebViewLoad::OnGotContentHandlerID() { |
31 is_content_handler_id_valid_ = true; | 31 is_content_handler_id_valid_ = true; |
32 if (web_view_->root_) | 32 if (web_view_->root_) |
33 web_view_->OnLoad(pending_url_); | 33 web_view_->OnLoad(pending_url_); |
34 // The else case is handled by WebViewImpl when it gets the View (|root_|). | 34 // The else case is handled by WebViewImpl when it gets the Window (|root_|). |
35 } | 35 } |
36 | 36 |
37 } // namespace web_view | 37 } // namespace web_view |
OLD | NEW |