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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 //------------------------------------------------------------------------------ | 905 //------------------------------------------------------------------------------ |
906 | 906 |
907 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 907 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
908 if (g_test_gamepads == 0) { | 908 if (g_test_gamepads == 0) { |
909 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 909 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
910 } else { | 910 } else { |
911 gamepads = g_test_gamepads.Get(); | 911 gamepads = g_test_gamepads.Get(); |
912 } | 912 } |
913 } | 913 } |
914 | 914 |
915 blink::WebString RendererWebKitPlatformSupportImpl::userAgent( | |
916 const blink::WebURL& url) { | |
917 return WebKitPlatformSupportImpl::userAgent(url); | |
918 } | |
919 | |
920 //------------------------------------------------------------------------------ | 915 //------------------------------------------------------------------------------ |
921 | 916 |
922 WebRTCPeerConnectionHandler* | 917 WebRTCPeerConnectionHandler* |
923 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 918 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
924 WebRTCPeerConnectionHandlerClient* client) { | 919 WebRTCPeerConnectionHandlerClient* client) { |
925 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 920 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
926 DCHECK(render_thread); | 921 DCHECK(render_thread); |
927 if (!render_thread) | 922 if (!render_thread) |
928 return NULL; | 923 return NULL; |
929 | 924 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 return; | 1140 return; |
1146 QuotaDispatcher::ThreadSpecificInstance( | 1141 QuotaDispatcher::ThreadSpecificInstance( |
1147 thread_safe_sender_.get(), | 1142 thread_safe_sender_.get(), |
1148 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1143 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1149 storage_partition, | 1144 storage_partition, |
1150 static_cast<quota::StorageType>(type), | 1145 static_cast<quota::StorageType>(type), |
1151 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1146 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1152 } | 1147 } |
1153 | 1148 |
1154 } // namespace content | 1149 } // namespace content |
OLD | NEW |