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 "content/child/blink_platform_impl.h" | 5 #include "content/child/blink_platform_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/allocator/allocator_extension.h" | 11 #include "base/allocator/allocator_extension.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/metrics/sparse_histogram.h" | 18 #include "base/metrics/sparse_histogram.h" |
19 #include "base/metrics/stats_counters.h" | 19 #include "base/metrics/stats_counters.h" |
20 #include "base/process/process_metrics.h" | 20 #include "base/process/process_metrics.h" |
21 #include "base/rand_util.h" | 21 #include "base/rand_util.h" |
22 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
25 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
26 #include "base/synchronization/waitable_event.h" | 26 #include "base/synchronization/waitable_event.h" |
27 #include "base/sys_info.h" | 27 #include "base/sys_info.h" |
28 #include "base/time/time.h" | 28 #include "base/time/time.h" |
| 29 #include "blink/public/resources/grit/blink_resources.h" |
29 #include "content/child/child_thread.h" | 30 #include "content/child/child_thread.h" |
30 #include "content/child/content_child_helpers.h" | 31 #include "content/child/content_child_helpers.h" |
31 #include "content/child/fling_curve_configuration.h" | 32 #include "content/child/fling_curve_configuration.h" |
32 #include "content/child/web_discardable_memory_impl.h" | 33 #include "content/child/web_discardable_memory_impl.h" |
33 #include "content/child/web_socket_stream_handle_impl.h" | 34 #include "content/child/web_socket_stream_handle_impl.h" |
34 #include "content/child/web_url_loader_impl.h" | 35 #include "content/child/web_url_loader_impl.h" |
35 #include "content/child/websocket_bridge.h" | 36 #include "content/child/websocket_bridge.h" |
36 #include "content/child/webthread_impl.h" | 37 #include "content/child/webthread_impl.h" |
37 #include "content/child/worker_task_runner.h" | 38 #include "content/child/worker_task_runner.h" |
38 #include "content/public/common/content_client.h" | 39 #include "content/public/common/content_client.h" |
39 #include "grit/blink_resources.h" | |
40 #include "grit/webkit_resources.h" | 40 #include "grit/webkit_resources.h" |
41 #include "grit/webkit_strings.h" | 41 #include "grit/webkit_strings.h" |
42 #include "net/base/data_url.h" | 42 #include "net/base/data_url.h" |
43 #include "net/base/mime_util.h" | 43 #include "net/base/mime_util.h" |
44 #include "net/base/net_errors.h" | 44 #include "net/base/net_errors.h" |
45 #include "third_party/WebKit/public/platform/WebConvertableToTraceFormat.h" | 45 #include "third_party/WebKit/public/platform/WebConvertableToTraceFormat.h" |
46 #include "third_party/WebKit/public/platform/WebData.h" | 46 #include "third_party/WebKit/public/platform/WebData.h" |
47 #include "third_party/WebKit/public/platform/WebString.h" | 47 #include "third_party/WebKit/public/platform/WebString.h" |
48 #include "third_party/WebKit/public/platform/WebWaitableEvent.h" | 48 #include "third_party/WebKit/public/platform/WebWaitableEvent.h" |
49 #include "ui/base/layout.h" | 49 #include "ui/base/layout.h" |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 } | 1133 } |
1134 | 1134 |
1135 // static | 1135 // static |
1136 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { | 1136 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { |
1137 WebThreadImplForMessageLoop* impl = | 1137 WebThreadImplForMessageLoop* impl = |
1138 static_cast<WebThreadImplForMessageLoop*>(thread); | 1138 static_cast<WebThreadImplForMessageLoop*>(thread); |
1139 delete impl; | 1139 delete impl; |
1140 } | 1140 } |
1141 | 1141 |
1142 } // namespace content | 1142 } // namespace content |
OLD | NEW |