| 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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 if (g_test_gamepads == 0) { | 886 if (g_test_gamepads == 0) { |
| 887 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 887 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
| 888 } else { | 888 } else { |
| 889 gamepads = g_test_gamepads.Get(); | 889 gamepads = g_test_gamepads.Get(); |
| 890 } | 890 } |
| 891 } | 891 } |
| 892 | 892 |
| 893 void RendererWebKitPlatformSupportImpl::setGamepadListener( | 893 void RendererWebKitPlatformSupportImpl::setGamepadListener( |
| 894 blink::WebGamepadListener* listener) { | 894 blink::WebGamepadListener* listener) { |
| 895 web_gamepad_listener = listener; | 895 web_gamepad_listener = listener; |
| 896 RenderThreadImpl::current()->SetGamepadListener(listener); |
| 896 } | 897 } |
| 897 | 898 |
| 898 //------------------------------------------------------------------------------ | 899 //------------------------------------------------------------------------------ |
| 899 | 900 |
| 900 WebRTCPeerConnectionHandler* | 901 WebRTCPeerConnectionHandler* |
| 901 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 902 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 902 WebRTCPeerConnectionHandlerClient* client) { | 903 WebRTCPeerConnectionHandlerClient* client) { |
| 903 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 904 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
| 904 DCHECK(render_thread); | 905 DCHECK(render_thread); |
| 905 if (!render_thread) | 906 if (!render_thread) |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 return; | 1174 return; |
| 1174 QuotaDispatcher::ThreadSpecificInstance( | 1175 QuotaDispatcher::ThreadSpecificInstance( |
| 1175 thread_safe_sender_.get(), | 1176 thread_safe_sender_.get(), |
| 1176 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1177 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1177 storage_partition, | 1178 storage_partition, |
| 1178 static_cast<quota::StorageType>(type), | 1179 static_cast<quota::StorageType>(type), |
| 1179 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1180 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1180 } | 1181 } |
| 1181 | 1182 |
| 1182 } // namespace content | 1183 } // namespace content |
| OLD | NEW |