| 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 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
| 11 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 14 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 15 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
| 16 #include "components/html_viewer/blink_resource_constants.h" | 17 #include "components/html_viewer/blink_resource_constants.h" |
| 17 #include "components/html_viewer/global_state.h" | 18 #include "components/html_viewer/global_state.h" |
| 18 #include "components/html_viewer/web_clipboard_impl.h" | 19 #include "components/html_viewer/web_clipboard_impl.h" |
| 19 #include "components/html_viewer/web_cookie_jar_impl.h" | 20 #include "components/html_viewer/web_cookie_jar_impl.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 BlinkPlatformImpl::notificationManager() { | 310 BlinkPlatformImpl::notificationManager() { |
| 310 return &web_notification_manager_; | 311 return &web_notification_manager_; |
| 311 } | 312 } |
| 312 | 313 |
| 313 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { | 314 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { |
| 314 DCHECK(!current_thread_slot_.Get()); | 315 DCHECK(!current_thread_slot_.Get()); |
| 315 current_thread_slot_.Set(thread); | 316 current_thread_slot_.Set(thread); |
| 316 } | 317 } |
| 317 | 318 |
| 318 } // namespace html_viewer | 319 } // namespace html_viewer |
| OLD | NEW |