Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: components/html_viewer/html_document.cc

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_document.h" 5 #include "components/html_viewer/html_document.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "components/html_viewer/blink_url_request_type_converters.h" 17 #include "components/html_viewer/blink_url_request_type_converters.h"
18 #include "components/html_viewer/devtools_agent_impl.h" 18 #include "components/html_viewer/devtools_agent_impl.h"
19 #include "components/html_viewer/document_resource_waiter.h" 19 #include "components/html_viewer/document_resource_waiter.h"
20 #include "components/html_viewer/global_state.h" 20 #include "components/html_viewer/global_state.h"
21 #include "components/html_viewer/html_frame.h" 21 #include "components/html_viewer/html_frame.h"
22 #include "components/html_viewer/html_frame_tree_manager.h" 22 #include "components/html_viewer/html_frame_tree_manager.h"
23 #include "components/html_viewer/test_html_viewer_impl.h" 23 #include "components/html_viewer/test_html_viewer_impl.h"
24 #include "components/html_viewer/web_url_loader_impl.h" 24 #include "components/html_viewer/web_url_loader_impl.h"
25 #include "components/mus/public/cpp/window.h" 25 #include "components/mus/public/cpp/window.h"
26 #include "components/mus/public/cpp/window_tree_connection.h" 26 #include "components/mus/public/cpp/window_tree_connection.h"
27 #include "components/mus/ws/ids.h" 27 #include "components/mus/ws/ids.h"
28 #include "mojo/converters/geometry/geometry_type_converters.h" 28 #include "mojo/converters/geometry/geometry_type_converters.h"
29 #include "mojo/public/cpp/system/data_pipe.h" 29 #include "mojo/public/cpp/system/data_pipe.h"
30 #include "mojo/shell/public/cpp/application_impl.h" 30 #include "mojo/shell/public/cpp/shell_connection.h"
31 #include "mojo/shell/public/interfaces/shell.mojom.h" 31 #include "mojo/shell/public/interfaces/shell.mojom.h"
32 #include "third_party/WebKit/public/web/WebLocalFrame.h" 32 #include "third_party/WebKit/public/web/WebLocalFrame.h"
33 #include "ui/gfx/geometry/dip_util.h" 33 #include "ui/gfx/geometry/dip_util.h"
34 #include "ui/gfx/geometry/size.h" 34 #include "ui/gfx/geometry/size.h"
35 35
36 using mojo::AxProvider; 36 using mojo::AxProvider;
37 using mus::Window; 37 using mus::Window;
38 38
39 namespace html_viewer { 39 namespace html_viewer {
40 namespace { 40 namespace {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 DCHECK(!transferable_state_.window_tree_delegate_impl); 323 DCHECK(!transferable_state_.window_tree_delegate_impl);
324 transferable_state_.window_tree_delegate_impl.reset( 324 transferable_state_.window_tree_delegate_impl.reset(
325 new WindowTreeDelegateImpl(this)); 325 new WindowTreeDelegateImpl(this));
326 transferable_state_.owns_window_tree_connection = true; 326 transferable_state_.owns_window_tree_connection = true;
327 mus::WindowTreeConnection::Create( 327 mus::WindowTreeConnection::Create(
328 transferable_state_.window_tree_delegate_impl.get(), std::move(request), 328 transferable_state_.window_tree_delegate_impl.get(), std::move(request),
329 mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED); 329 mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED);
330 } 330 }
331 331
332 } // namespace html_viewer 332 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/html_document.h ('k') | components/html_viewer/html_document_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698