| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #include "core/platform/chromium/support/WrappedResourceResponse.h" | 76 #include "core/platform/chromium/support/WrappedResourceResponse.h" |
| 77 #include "core/platform/mediastream/RTCPeerConnectionHandler.h" | 77 #include "core/platform/mediastream/RTCPeerConnectionHandler.h" |
| 78 #include "core/platform/network/HTTPParsers.h" | 78 #include "core/platform/network/HTTPParsers.h" |
| 79 #include "core/plugins/PluginData.h" | 79 #include "core/plugins/PluginData.h" |
| 80 #include "core/rendering/HitTestResult.h" | 80 #include "core/rendering/HitTestResult.h" |
| 81 #include "modules/device_orientation/DeviceMotionController.h" | 81 #include "modules/device_orientation/DeviceMotionController.h" |
| 82 #include "platform/UserGestureIndicator.h" | 82 #include "platform/UserGestureIndicator.h" |
| 83 #include "platform/network/SocketStreamHandleInternal.h" | 83 #include "platform/network/SocketStreamHandleInternal.h" |
| 84 #include "public/platform/Platform.h" | 84 #include "public/platform/Platform.h" |
| 85 #include "public/platform/WebMimeRegistry.h" | 85 #include "public/platform/WebMimeRegistry.h" |
| 86 #include "public/platform/WebServiceWorkerProvider.h" |
| 86 #include "public/platform/WebSocketStreamHandle.h" | 87 #include "public/platform/WebSocketStreamHandle.h" |
| 87 #include "public/platform/WebURL.h" | 88 #include "public/platform/WebURL.h" |
| 88 #include "public/platform/WebURLError.h" | 89 #include "public/platform/WebURLError.h" |
| 89 #include "public/platform/WebVector.h" | 90 #include "public/platform/WebVector.h" |
| 90 #include "wtf/StringExtras.h" | 91 #include "wtf/StringExtras.h" |
| 91 #include "wtf/text/CString.h" | 92 #include "wtf/text/CString.h" |
| 92 #include "wtf/text/WTFString.h" | 93 #include "wtf/text/WTFString.h" |
| 93 #include <v8.h> | 94 #include <v8.h> |
| 94 | 95 |
| 95 using namespace WebCore; | 96 using namespace WebCore; |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 if (m_webFrame->client()) | 746 if (m_webFrame->client()) |
| 746 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 747 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
| 747 } | 748 } |
| 748 | 749 |
| 749 void FrameLoaderClientImpl::dispatchWillInsertBody() | 750 void FrameLoaderClientImpl::dispatchWillInsertBody() |
| 750 { | 751 { |
| 751 if (m_webFrame->client()) | 752 if (m_webFrame->client()) |
| 752 m_webFrame->client()->willInsertBody(m_webFrame); | 753 m_webFrame->client()->willInsertBody(m_webFrame); |
| 753 } | 754 } |
| 754 | 755 |
| 755 WebServiceWorkerRegistry* FrameLoaderClientImpl::serviceWorkerRegistry() | 756 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) |
| 756 { | 757 { |
| 757 if (!m_webFrame->client()) | 758 if (!m_webFrame->client()) |
| 758 return 0; | 759 return nullptr; |
| 759 return m_webFrame->client()->serviceWorkerRegistry(m_webFrame); | 760 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
, client.leakPtr())); |
| 760 } | 761 } |
| 761 | 762 |
| 762 void FrameLoaderClientImpl::didStopAllLoaders() | 763 void FrameLoaderClientImpl::didStopAllLoaders() |
| 763 { | 764 { |
| 764 if (m_webFrame->client()) | 765 if (m_webFrame->client()) |
| 765 m_webFrame->client()->didAbortLoading(m_webFrame); | 766 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 766 } | 767 } |
| 767 | 768 |
| 768 } // namespace WebKit | 769 } // namespace WebKit |
| OLD | NEW |