Chromium Code Reviews| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 865 | 865 |
| 866 //------------------------------------------------------------------------------ | 866 //------------------------------------------------------------------------------ |
| 867 | 867 |
| 868 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 868 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
| 869 // blob_registry_ can be NULL when running some tests. | 869 // blob_registry_ can be NULL when running some tests. |
| 870 return blob_registry_.get(); | 870 return blob_registry_.get(); |
| 871 } | 871 } |
| 872 | 872 |
| 873 //------------------------------------------------------------------------------ | 873 //------------------------------------------------------------------------------ |
| 874 | 874 |
| 875 blink::WebCredentialManager* | |
| 876 RendererWebKitPlatformSupportImpl::credentialManager() { | |
| 877 return GetContentClient()->renderer()->GetCredentialManager(); | |
|
jam
2014/08/19 19:55:31
the pattern we had used for the content refactorin
Mike West
2014/08/20 13:17:20
That keeps //content clean at the expense of makin
| |
| 878 } | |
| 879 | |
| 880 //------------------------------------------------------------------------------ | |
| 881 | |
| 875 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 882 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
| 876 DCHECK(gamepad_provider_); | 883 DCHECK(gamepad_provider_); |
| 877 gamepad_provider_->SampleGamepads(gamepads); | 884 gamepad_provider_->SampleGamepads(gamepads); |
| 878 } | 885 } |
| 879 | 886 |
| 880 //------------------------------------------------------------------------------ | 887 //------------------------------------------------------------------------------ |
| 881 | 888 |
| 882 WebRTCPeerConnectionHandler* | 889 WebRTCPeerConnectionHandler* |
| 883 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 890 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 884 WebRTCPeerConnectionHandlerClient* client) { | 891 WebRTCPeerConnectionHandlerClient* client) { |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1200 | 1207 |
| 1201 //------------------------------------------------------------------------------ | 1208 //------------------------------------------------------------------------------ |
| 1202 | 1209 |
| 1203 // static | 1210 // static |
| 1204 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( | 1211 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( |
| 1205 const blink::WebBatteryStatus& status) { | 1212 const blink::WebBatteryStatus& status) { |
| 1206 g_test_battery_status_dispatcher.Get().PostBatteryStatusChange(status); | 1213 g_test_battery_status_dispatcher.Get().PostBatteryStatusChange(status); |
| 1207 } | 1214 } |
| 1208 | 1215 |
| 1209 } // namespace content | 1216 } // namespace content |
| OLD | NEW |