| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/loader/FrameLoadRequest.h" | 49 #include "core/loader/FrameLoadRequest.h" |
| 50 #include "core/loader/FrameLoader.h" | 50 #include "core/loader/FrameLoader.h" |
| 51 #include "core/loader/HistoryItem.h" | 51 #include "core/loader/HistoryItem.h" |
| 52 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
| 53 #include "core/page/WindowFeatures.h" | 53 #include "core/page/WindowFeatures.h" |
| 54 #include "modules/device_light/DeviceLightController.h" | 54 #include "modules/device_light/DeviceLightController.h" |
| 55 #include "modules/device_orientation/DeviceMotionController.h" | 55 #include "modules/device_orientation/DeviceMotionController.h" |
| 56 #include "modules/device_orientation/DeviceOrientationController.h" | 56 #include "modules/device_orientation/DeviceOrientationController.h" |
| 57 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" | 57 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
| 58 #include "modules/gamepad/NavigatorGamepad.h" | 58 #include "modules/gamepad/NavigatorGamepad.h" |
| 59 #include "modules/mediasession/MediaSession.h" |
| 59 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 60 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
| 60 #include "modules/storage/DOMWindowStorageController.h" | 61 #include "modules/storage/DOMWindowStorageController.h" |
| 61 #include "modules/vr/NavigatorVRDevice.h" | 62 #include "modules/vr/NavigatorVRDevice.h" |
| 62 #include "platform/MIMETypeRegistry.h" | 63 #include "platform/MIMETypeRegistry.h" |
| 63 #include "platform/RuntimeEnabledFeatures.h" | 64 #include "platform/RuntimeEnabledFeatures.h" |
| 64 #include "platform/UserGestureIndicator.h" | 65 #include "platform/UserGestureIndicator.h" |
| 65 #include "platform/exported/WrappedResourceRequest.h" | 66 #include "platform/exported/WrappedResourceRequest.h" |
| 66 #include "platform/exported/WrappedResourceResponse.h" | 67 #include "platform/exported/WrappedResourceResponse.h" |
| 67 #include "platform/network/HTTPParsers.h" | 68 #include "platform/network/HTTPParsers.h" |
| 68 #include "platform/plugins/PluginData.h" | 69 #include "platform/plugins/PluginData.h" |
| 69 #include "public/platform/Platform.h" | 70 #include "public/platform/Platform.h" |
| 70 #include "public/platform/WebApplicationCacheHost.h" | 71 #include "public/platform/WebApplicationCacheHost.h" |
| 71 #include "public/platform/WebMimeRegistry.h" | 72 #include "public/platform/WebMimeRegistry.h" |
| 72 #include "public/platform/WebRTCPeerConnectionHandler.h" | 73 #include "public/platform/WebRTCPeerConnectionHandler.h" |
| 73 #include "public/platform/WebSecurityOrigin.h" | 74 #include "public/platform/WebSecurityOrigin.h" |
| 74 #include "public/platform/WebURL.h" | 75 #include "public/platform/WebURL.h" |
| 75 #include "public/platform/WebURLError.h" | 76 #include "public/platform/WebURLError.h" |
| 76 #include "public/platform/WebVector.h" | 77 #include "public/platform/WebVector.h" |
| 78 #include "public/platform/modules/mediasession/WebMediaSession.h" |
| 77 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" | 79 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
| 78 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" | 80 #include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h
" |
| 79 #include "public/web/WebAutofillClient.h" | 81 #include "public/web/WebAutofillClient.h" |
| 80 #include "public/web/WebContentSettingsClient.h" | 82 #include "public/web/WebContentSettingsClient.h" |
| 81 #include "public/web/WebDOMEvent.h" | 83 #include "public/web/WebDOMEvent.h" |
| 82 #include "public/web/WebDocument.h" | 84 #include "public/web/WebDocument.h" |
| 83 #include "public/web/WebFormElement.h" | 85 #include "public/web/WebFormElement.h" |
| 84 #include "public/web/WebFrameClient.h" | 86 #include "public/web/WebFrameClient.h" |
| 85 #include "public/web/WebNode.h" | 87 #include "public/web/WebNode.h" |
| 86 #include "public/web/WebPlugin.h" | 88 #include "public/web/WebPlugin.h" |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 | 774 |
| 773 if (!webFrame || !webFrame->client()) | 775 if (!webFrame || !webFrame->client()) |
| 774 return nullptr; | 776 return nullptr; |
| 775 | 777 |
| 776 HTMLMediaElementEncryptedMedia& encryptedMedia = HTMLMediaElementEncryptedMe
dia::from(htmlMediaElement); | 778 HTMLMediaElementEncryptedMedia& encryptedMedia = HTMLMediaElementEncryptedMe
dia::from(htmlMediaElement); |
| 777 return adoptPtr(webFrame->client()->createMediaPlayer(webFrame, url, | 779 return adoptPtr(webFrame->client()->createMediaPlayer(webFrame, url, |
| 778 client, &encryptedMedia, | 780 client, &encryptedMedia, |
| 779 encryptedMedia.contentDecryptionModule())); | 781 encryptedMedia.contentDecryptionModule())); |
| 780 } | 782 } |
| 781 | 783 |
| 784 PassOwnPtr<WebMediaSession> FrameLoaderClientImpl::createWebMediaSession() |
| 785 { |
| 786 if (!m_webFrame->client()) |
| 787 return nullptr; |
| 788 |
| 789 return adoptPtr(m_webFrame->client()->createMediaSession()); |
| 790 } |
| 791 |
| 782 ObjectContentType FrameLoaderClientImpl::objectContentType( | 792 ObjectContentType FrameLoaderClientImpl::objectContentType( |
| 783 const KURL& url, | 793 const KURL& url, |
| 784 const String& explicitMimeType, | 794 const String& explicitMimeType, |
| 785 bool shouldPreferPlugInsForImages) | 795 bool shouldPreferPlugInsForImages) |
| 786 { | 796 { |
| 787 // This code is based on Apple's implementation from | 797 // This code is based on Apple's implementation from |
| 788 // WebCoreSupport/WebFrameBridge.mm. | 798 // WebCoreSupport/WebFrameBridge.mm. |
| 789 | 799 |
| 790 String mimeType = explicitMimeType; | 800 String mimeType = explicitMimeType; |
| 791 if (mimeType.isEmpty()) { | 801 if (mimeType.isEmpty()) { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 964 |
| 955 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) | 965 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
| 956 { | 966 { |
| 957 if (m_webFrame->client()) { | 967 if (m_webFrame->client()) { |
| 958 m_webFrame->client()->suddenTerminationDisablerChanged( | 968 m_webFrame->client()->suddenTerminationDisablerChanged( |
| 959 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); | 969 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
| 960 } | 970 } |
| 961 } | 971 } |
| 962 | 972 |
| 963 } // namespace blink | 973 } // namespace blink |
| OLD | NEW |