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 30 matching lines...) Expand all Loading... |
41 #include "content/renderer/media/audio_decoder.h" | 41 #include "content/renderer/media/audio_decoder.h" |
42 #include "content/renderer/media/crypto/key_systems.h" | 42 #include "content/renderer/media/crypto/key_systems.h" |
43 #include "content/renderer/media/media_stream_dependency_factory.h" | 43 #include "content/renderer/media/media_stream_dependency_factory.h" |
44 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 44 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" | 45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" | 46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
47 #include "content/renderer/render_thread_impl.h" | 47 #include "content/renderer/render_thread_impl.h" |
48 #include "content/renderer/renderer_clipboard_client.h" | 48 #include "content/renderer/renderer_clipboard_client.h" |
49 #include "content/renderer/webclipboard_impl.h" | 49 #include "content/renderer/webclipboard_impl.h" |
50 #include "content/renderer/webcrypto/webcrypto_impl.h" | 50 #include "content/renderer/webcrypto/webcrypto_impl.h" |
| 51 #include "content/renderer/webpublicsuffixlist_impl.h" |
51 #include "gpu/config/gpu_info.h" | 52 #include "gpu/config/gpu_info.h" |
52 #include "ipc/ipc_sync_message_filter.h" | 53 #include "ipc/ipc_sync_message_filter.h" |
53 #include "media/audio/audio_output_device.h" | 54 #include "media/audio/audio_output_device.h" |
54 #include "media/base/audio_hardware_config.h" | 55 #include "media/base/audio_hardware_config.h" |
55 #include "media/filters/stream_parser_factory.h" | 56 #include "media/filters/stream_parser_factory.h" |
56 #include "net/base/mime_util.h" | 57 #include "net/base/mime_util.h" |
57 #include "net/base/net_util.h" | 58 #include "net/base/net_util.h" |
58 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 59 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
59 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" | 60 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" |
60 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" | 61 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 builder->addFileExtensionToLastMediaType( | 801 builder->addFileExtensionToLastMediaType( |
801 WebString::fromUTF8(mime_type.file_extensions[k])); | 802 WebString::fromUTF8(mime_type.file_extensions[k])); |
802 } | 803 } |
803 } | 804 } |
804 } | 805 } |
805 #endif | 806 #endif |
806 } | 807 } |
807 | 808 |
808 //------------------------------------------------------------------------------ | 809 //------------------------------------------------------------------------------ |
809 | 810 |
| 811 blink::WebPublicSuffixList* |
| 812 RendererWebKitPlatformSupportImpl::publicSuffixList() { |
| 813 return &public_suffix_list_; |
| 814 } |
| 815 |
| 816 //------------------------------------------------------------------------------ |
| 817 |
810 blink::WebString | 818 blink::WebString |
811 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 819 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
812 unsigned key_size_index, | 820 unsigned key_size_index, |
813 const blink::WebString& challenge, | 821 const blink::WebString& challenge, |
814 const blink::WebURL& url) { | 822 const blink::WebURL& url) { |
815 std::string signed_public_key; | 823 std::string signed_public_key; |
816 RenderThread::Get()->Send(new ViewHostMsg_Keygen( | 824 RenderThread::Get()->Send(new ViewHostMsg_Keygen( |
817 static_cast<uint32>(key_size_index), | 825 static_cast<uint32>(key_size_index), |
818 challenge.utf8(), | 826 challenge.utf8(), |
819 GURL(url), | 827 GURL(url), |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 return; | 1071 return; |
1064 QuotaDispatcher::ThreadSpecificInstance( | 1072 QuotaDispatcher::ThreadSpecificInstance( |
1065 thread_safe_sender_.get(), | 1073 thread_safe_sender_.get(), |
1066 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1074 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1067 storage_partition, | 1075 storage_partition, |
1068 static_cast<quota::StorageType>(type), | 1076 static_cast<quota::StorageType>(type), |
1069 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1077 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1070 } | 1078 } |
1071 | 1079 |
1072 } // namespace content | 1080 } // namespace content |
OLD | NEW |