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/logging.h" | 10 #include "base/logging.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "media/blink/webcontentdecryptionmodule_impl.h" | 68 #include "media/blink/webcontentdecryptionmodule_impl.h" |
69 #include "media/filters/stream_parser_factory.h" | 69 #include "media/filters/stream_parser_factory.h" |
70 #include "net/base/net_util.h" | 70 #include "net/base/net_util.h" |
71 #include "storage/common/database/database_identifier.h" | 71 #include "storage/common/database/database_identifier.h" |
72 #include "storage/common/quota/quota_types.h" | 72 #include "storage/common/quota/quota_types.h" |
73 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h" | 73 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h" |
74 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 74 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
75 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" | 75 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" |
76 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 76 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
77 #include "third_party/WebKit/public/platform/WebGamepads.h" | 77 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 78 #include "third_party/WebKit/public/platform/WebGPUBlackList.h" |
78 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 79 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
79 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 80 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
80 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" | 81 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
81 #include "third_party/WebKit/public/platform/WebURL.h" | 82 #include "third_party/WebKit/public/platform/WebURL.h" |
82 #include "third_party/WebKit/public/platform/WebVector.h" | 83 #include "third_party/WebKit/public/platform/WebVector.h" |
83 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionListener.h" | 84 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionListener.h" |
84 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationListener.h" | 85 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationListener.h" |
85 #include "ui/gfx/color_profile.h" | 86 #include "ui/gfx/color_profile.h" |
86 #include "url/gurl.h" | 87 #include "url/gurl.h" |
87 | 88 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 783 |
783 for (size_t k = 0; k < mime_type.file_extensions.size(); ++k) { | 784 for (size_t k = 0; k < mime_type.file_extensions.size(); ++k) { |
784 builder->addFileExtensionToLastMediaType( | 785 builder->addFileExtensionToLastMediaType( |
785 WebString::fromUTF8(mime_type.file_extensions[k])); | 786 WebString::fromUTF8(mime_type.file_extensions[k])); |
786 } | 787 } |
787 } | 788 } |
788 } | 789 } |
789 #endif | 790 #endif |
790 } | 791 } |
791 | 792 |
| 793 void RendererBlinkPlatformImpl::getGPUBlackList( |
| 794 blink::WebGPUBlackList* blacklist) { |
| 795 // TODO : Get WebPreferences (gl_rgb_support_enabled) |
| 796 blacklist->disableGLRGBFormat(false /* prefs->gl_rgb_support_enabled */); |
| 797 } |
| 798 |
792 //------------------------------------------------------------------------------ | 799 //------------------------------------------------------------------------------ |
793 | 800 |
794 blink::WebPublicSuffixList* RendererBlinkPlatformImpl::publicSuffixList() { | 801 blink::WebPublicSuffixList* RendererBlinkPlatformImpl::publicSuffixList() { |
795 return &public_suffix_list_; | 802 return &public_suffix_list_; |
796 } | 803 } |
797 | 804 |
798 //------------------------------------------------------------------------------ | 805 //------------------------------------------------------------------------------ |
799 | 806 |
800 blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString( | 807 blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString( |
801 unsigned key_size_index, | 808 unsigned key_size_index, |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 //------------------------------------------------------------------------------ | 1235 //------------------------------------------------------------------------------ |
1229 | 1236 |
1230 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1237 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
1231 const blink::WebBatteryStatus& status) { | 1238 const blink::WebBatteryStatus& status) { |
1232 if (!g_test_battery_status_listener) | 1239 if (!g_test_battery_status_listener) |
1233 return; | 1240 return; |
1234 g_test_battery_status_listener->updateBatteryStatus(status); | 1241 g_test_battery_status_listener->updateBatteryStatus(status); |
1235 } | 1242 } |
1236 | 1243 |
1237 } // namespace content | 1244 } // namespace content |
OLD | NEW |