OLD | NEW |
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/blink_platform_impl.h" | 5 #include "components/html_viewer/blink_platform_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "components/html_viewer/blink_resource_constants.h" | 18 #include "components/html_viewer/blink_resource_constants.h" |
19 #include "components/html_viewer/global_state.h" | 19 #include "components/html_viewer/global_state.h" |
20 #include "components/html_viewer/web_clipboard_impl.h" | 20 #include "components/html_viewer/web_clipboard_impl.h" |
21 #include "components/html_viewer/web_cookie_jar_impl.h" | 21 #include "components/html_viewer/web_cookie_jar_impl.h" |
22 #include "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h" | 22 #include "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h" |
23 #include "components/html_viewer/web_socket_handle_impl.h" | 23 #include "components/html_viewer/web_socket_handle_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/message_port/web_message_port_channel_impl.h" | 25 #include "components/message_port/web_message_port_channel_impl.h" |
26 #include "components/mime_util/mime_util.h" | 26 #include "components/mime_util/mime_util.h" |
27 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h" | 27 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h" |
28 #include "components/scheduler/renderer/renderer_scheduler.h" | 28 #include "components/scheduler/renderer/renderer_scheduler.h" |
29 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" | 29 #include "components/scheduler/renderer/webthread_impl_for_renderer_scheduler.h" |
30 #include "mojo/application/public/cpp/application_impl.h" | |
31 #include "mojo/application/public/cpp/connect.h" | |
32 #include "mojo/common/user_agent.h" | 30 #include "mojo/common/user_agent.h" |
| 31 #include "mojo/shell/public/cpp/application_impl.h" |
| 32 #include "mojo/shell/public/cpp/connect.h" |
33 #include "net/base/data_url.h" | 33 #include "net/base/data_url.h" |
34 #include "net/base/ip_address_number.h" | 34 #include "net/base/ip_address_number.h" |
35 #include "net/base/net_errors.h" | 35 #include "net/base/net_errors.h" |
36 #include "net/base/net_util.h" | 36 #include "net/base/net_util.h" |
37 #include "third_party/WebKit/public/platform/WebWaitableEvent.h" | 37 #include "third_party/WebKit/public/platform/WebWaitableEvent.h" |
38 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
39 #include "ui/events/gestures/blink/web_gesture_curve_impl.h" | 39 #include "ui/events/gestures/blink/web_gesture_curve_impl.h" |
40 #include "url/gurl.h" | 40 #include "url/gurl.h" |
41 | 41 |
42 namespace html_viewer { | 42 namespace html_viewer { |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 BlinkPlatformImpl::notificationManager() { | 311 BlinkPlatformImpl::notificationManager() { |
312 return &web_notification_manager_; | 312 return &web_notification_manager_; |
313 } | 313 } |
314 | 314 |
315 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { | 315 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { |
316 DCHECK(!current_thread_slot_.Get()); | 316 DCHECK(!current_thread_slot_.Get()); |
317 current_thread_slot_.Set(thread); | 317 current_thread_slot_.Set(thread); |
318 } | 318 } |
319 | 319 |
320 } // namespace html_viewer | 320 } // namespace html_viewer |
OLD | NEW |