| 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_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_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/location.h" | 10 #include "base/location.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "content/child/webblobregistry_impl.h" | 35 #include "content/child/webblobregistry_impl.h" |
| 36 #include "content/child/webfileutilities_impl.h" | 36 #include "content/child/webfileutilities_impl.h" |
| 37 #include "content/child/webmessageportchannel_impl.h" | 37 #include "content/child/webmessageportchannel_impl.h" |
| 38 #include "content/common/file_utilities_messages.h" | 38 #include "content/common/file_utilities_messages.h" |
| 39 #include "content/common/frame_messages.h" | 39 #include "content/common/frame_messages.h" |
| 40 #include "content/common/gpu/client/context_provider_command_buffer.h" | 40 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 41 #include "content/common/gpu/client/gpu_channel_host.h" | 41 #include "content/common/gpu/client/gpu_channel_host.h" |
| 42 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 42 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 43 #include "content/common/gpu/gpu_process_launch_causes.h" | 43 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 44 #include "content/common/mime_registry_messages.h" | 44 #include "content/common/mime_registry_messages.h" |
| 45 #include "content/common/render_process_messages.h" |
| 45 #include "content/common/view_messages.h" | 46 #include "content/common/view_messages.h" |
| 46 #include "content/public/common/content_switches.h" | 47 #include "content/public/common/content_switches.h" |
| 47 #include "content/public/common/service_registry.h" | 48 #include "content/public/common/service_registry.h" |
| 48 #include "content/public/common/webplugininfo.h" | 49 #include "content/public/common/webplugininfo.h" |
| 49 #include "content/public/renderer/content_renderer_client.h" | 50 #include "content/public/renderer/content_renderer_client.h" |
| 50 #include "content/renderer/battery_status/battery_status_dispatcher.h" | 51 #include "content/renderer/battery_status/battery_status_dispatcher.h" |
| 51 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" | 52 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" |
| 52 #include "content/renderer/device_sensors/device_light_event_pump.h" | 53 #include "content/renderer/device_sensors/device_light_event_pump.h" |
| 53 #include "content/renderer/device_sensors/device_motion_event_pump.h" | 54 #include "content/renderer/device_sensors/device_motion_event_pump.h" |
| 54 #include "content/renderer/device_sensors/device_orientation_event_pump.h" | 55 #include "content/renderer/device_sensors/device_orientation_event_pump.h" |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 return &public_suffix_list_; | 813 return &public_suffix_list_; |
| 813 } | 814 } |
| 814 | 815 |
| 815 //------------------------------------------------------------------------------ | 816 //------------------------------------------------------------------------------ |
| 816 | 817 |
| 817 blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString( | 818 blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString( |
| 818 unsigned key_size_index, | 819 unsigned key_size_index, |
| 819 const blink::WebString& challenge, | 820 const blink::WebString& challenge, |
| 820 const blink::WebURL& url) { | 821 const blink::WebURL& url) { |
| 821 std::string signed_public_key; | 822 std::string signed_public_key; |
| 822 RenderThread::Get()->Send(new FrameHostMsg_Keygen( | 823 RenderThread::Get()->Send(new RenderProcessHostMsg_Keygen( |
| 823 static_cast<uint32>(key_size_index), | 824 static_cast<uint32>(key_size_index), |
| 824 challenge.utf8(), | 825 challenge.utf8(), |
| 825 GURL(url), | 826 GURL(url), |
| 826 &signed_public_key)); | 827 &signed_public_key)); |
| 827 return WebString::fromUTF8(signed_public_key); | 828 return WebString::fromUTF8(signed_public_key); |
| 828 } | 829 } |
| 829 | 830 |
| 830 //------------------------------------------------------------------------------ | 831 //------------------------------------------------------------------------------ |
| 831 | 832 |
| 832 void RendererBlinkPlatformImpl::screenColorProfile( | 833 void RendererBlinkPlatformImpl::screenColorProfile( |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 //------------------------------------------------------------------------------ | 1256 //------------------------------------------------------------------------------ |
| 1256 | 1257 |
| 1257 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1258 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
| 1258 const blink::WebBatteryStatus& status) { | 1259 const blink::WebBatteryStatus& status) { |
| 1259 if (!g_test_battery_status_listener) | 1260 if (!g_test_battery_status_listener) |
| 1260 return; | 1261 return; |
| 1261 g_test_battery_status_listener->updateBatteryStatus(status); | 1262 g_test_battery_status_listener->updateBatteryStatus(status); |
| 1262 } | 1263 } |
| 1263 | 1264 |
| 1264 } // namespace content | 1265 } // namespace content |
| OLD | NEW |