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 "headless/lib/browser/headless_web_contents_impl.h" | 5 #include "headless/lib/browser/headless_web_contents_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/browser/render_widget_host_view.h" | 22 #include "content/public/browser/render_widget_host_view.h" |
23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
24 #include "content/public/browser/web_contents_delegate.h" | 24 #include "content/public/browser/web_contents_delegate.h" |
25 #include "content/public/common/bindings_policy.h" | 25 #include "content/public/common/bindings_policy.h" |
26 #include "content/public/renderer/render_frame.h" | 26 #include "content/public/renderer/render_frame.h" |
27 #include "headless/lib/browser/headless_browser_context_impl.h" | 27 #include "headless/lib/browser/headless_browser_context_impl.h" |
28 #include "headless/lib/browser/headless_browser_impl.h" | 28 #include "headless/lib/browser/headless_browser_impl.h" |
29 #include "headless/lib/browser/headless_browser_main_parts.h" | 29 #include "headless/lib/browser/headless_browser_main_parts.h" |
30 #include "headless/lib/browser/headless_devtools_client_impl.h" | 30 #include "headless/lib/browser/headless_devtools_client_impl.h" |
31 #include "services/shell/public/cpp/interface_registry.h" | 31 #include "services/service_manager/public/cpp/interface_registry.h" |
32 #include "ui/aura/window.h" | 32 #include "ui/aura/window.h" |
33 | 33 |
34 namespace headless { | 34 namespace headless { |
35 | 35 |
36 // static | 36 // static |
37 HeadlessWebContentsImpl* HeadlessWebContentsImpl::From( | 37 HeadlessWebContentsImpl* HeadlessWebContentsImpl::From( |
38 HeadlessWebContents* web_contents) { | 38 HeadlessWebContents* web_contents) { |
39 // This downcast is safe because there is only one implementation of | 39 // This downcast is safe because there is only one implementation of |
40 // HeadlessWebContents. | 40 // HeadlessWebContents. |
41 return static_cast<HeadlessWebContentsImpl*>(web_contents); | 41 return static_cast<HeadlessWebContentsImpl*>(web_contents); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 HeadlessWebContents::Builder::MojoService::MojoService() {} | 257 HeadlessWebContents::Builder::MojoService::MojoService() {} |
258 | 258 |
259 HeadlessWebContents::Builder::MojoService::MojoService( | 259 HeadlessWebContents::Builder::MojoService::MojoService( |
260 const std::string& service_name, | 260 const std::string& service_name, |
261 const base::Callback<void(mojo::ScopedMessagePipeHandle)>& service_factory) | 261 const base::Callback<void(mojo::ScopedMessagePipeHandle)>& service_factory) |
262 : service_name(service_name), service_factory(service_factory) {} | 262 : service_name(service_name), service_factory(service_factory) {} |
263 | 263 |
264 HeadlessWebContents::Builder::MojoService::~MojoService() {} | 264 HeadlessWebContents::Builder::MojoService::~MojoService() {} |
265 | 265 |
266 } // namespace headless | 266 } // namespace headless |
OLD | NEW |