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_impl.h" | 5 #include "components/web_view/web_view_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "components/devtools_service/public/cpp/switches.h" | 8 #include "components/devtools_service/public/cpp/switches.h" |
9 #include "components/view_manager/public/cpp/scoped_view_ptr.h" | 9 #include "components/mus/public/cpp/scoped_view_ptr.h" |
10 #include "components/view_manager/public/cpp/view.h" | 10 #include "components/mus/public/cpp/view.h" |
11 #include "components/view_manager/public/cpp/view_tree_connection.h" | 11 #include "components/mus/public/cpp/view_tree_connection.h" |
12 #include "components/web_view/frame.h" | 12 #include "components/web_view/frame.h" |
13 #include "components/web_view/frame_connection.h" | 13 #include "components/web_view/frame_connection.h" |
14 #include "components/web_view/frame_devtools_agent.h" | 14 #include "components/web_view/frame_devtools_agent.h" |
15 #include "components/web_view/frame_tree.h" | 15 #include "components/web_view/frame_tree.h" |
16 #include "components/web_view/pending_web_view_load.h" | 16 #include "components/web_view/pending_web_view_load.h" |
17 #include "mojo/application/public/cpp/application_impl.h" | 17 #include "mojo/application/public/cpp/application_impl.h" |
18 #include "mojo/converters/geometry/geometry_type_converters.h" | 18 #include "mojo/converters/geometry/geometry_type_converters.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 namespace web_view { | 21 namespace web_view { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 //////////////////////////////////////////////////////////////////////////////// | 170 //////////////////////////////////////////////////////////////////////////////// |
171 // WebViewImpl, FrameDevToolsAgentDelegate implementation: | 171 // WebViewImpl, FrameDevToolsAgentDelegate implementation: |
172 | 172 |
173 void WebViewImpl::HandlePageNavigateRequest(const GURL& url) { | 173 void WebViewImpl::HandlePageNavigateRequest(const GURL& url) { |
174 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 174 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
175 request->url = url.spec(); | 175 request->url = url.spec(); |
176 client_->TopLevelNavigate(request.Pass()); | 176 client_->TopLevelNavigate(request.Pass()); |
177 } | 177 } |
178 | 178 |
179 } // namespace web_view | 179 } // namespace web_view |
OLD | NEW |