| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 //------------------------------------------------------------------------------ | 920 //------------------------------------------------------------------------------ |
| 921 | 921 |
| 922 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 922 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
| 923 if (g_test_gamepads == 0) { | 923 if (g_test_gamepads == 0) { |
| 924 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 924 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
| 925 } else { | 925 } else { |
| 926 gamepads = g_test_gamepads.Get(); | 926 gamepads = g_test_gamepads.Get(); |
| 927 } | 927 } |
| 928 } | 928 } |
| 929 | 929 |
| 930 void RendererWebKitPlatformSupportImpl::setGamepadListener( |
| 931 blink::WebGamepadListener* listener) { |
| 932 RenderThreadImpl::current()->SetGamepadListener(listener); |
| 933 } |
| 934 |
| 930 //------------------------------------------------------------------------------ | 935 //------------------------------------------------------------------------------ |
| 931 | 936 |
| 932 WebRTCPeerConnectionHandler* | 937 WebRTCPeerConnectionHandler* |
| 933 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 938 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 934 WebRTCPeerConnectionHandlerClient* client) { | 939 WebRTCPeerConnectionHandlerClient* client) { |
| 935 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 940 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
| 936 DCHECK(render_thread); | 941 DCHECK(render_thread); |
| 937 if (!render_thread) | 942 if (!render_thread) |
| 938 return NULL; | 943 return NULL; |
| 939 | 944 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 return; | 1160 return; |
| 1156 QuotaDispatcher::ThreadSpecificInstance( | 1161 QuotaDispatcher::ThreadSpecificInstance( |
| 1157 thread_safe_sender_.get(), | 1162 thread_safe_sender_.get(), |
| 1158 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1163 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1159 storage_partition, | 1164 storage_partition, |
| 1160 static_cast<quota::StorageType>(type), | 1165 static_cast<quota::StorageType>(type), |
| 1161 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1166 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1162 } | 1167 } |
| 1163 | 1168 |
| 1164 } // namespace content | 1169 } // namespace content |
| OLD | NEW |