| 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" |
| 87 #include "public/platform/WebServiceWorkerProviderClient.h" |
| 86 #include "public/platform/WebSocketStreamHandle.h" | 88 #include "public/platform/WebSocketStreamHandle.h" |
| 87 #include "public/platform/WebURL.h" | 89 #include "public/platform/WebURL.h" |
| 88 #include "public/platform/WebURLError.h" | 90 #include "public/platform/WebURLError.h" |
| 89 #include "public/platform/WebVector.h" | 91 #include "public/platform/WebVector.h" |
| 90 #include "wtf/StringExtras.h" | 92 #include "wtf/StringExtras.h" |
| 91 #include "wtf/text/CString.h" | 93 #include "wtf/text/CString.h" |
| 92 #include "wtf/text/WTFString.h" | 94 #include "wtf/text/WTFString.h" |
| 93 #include <v8.h> | 95 #include <v8.h> |
| 94 | 96 |
| 95 using namespace WebCore; | 97 using namespace WebCore; |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 if (m_webFrame->client()) | 747 if (m_webFrame->client()) |
| 746 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 748 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
| 747 } | 749 } |
| 748 | 750 |
| 749 void FrameLoaderClientImpl::dispatchWillInsertBody() | 751 void FrameLoaderClientImpl::dispatchWillInsertBody() |
| 750 { | 752 { |
| 751 if (m_webFrame->client()) | 753 if (m_webFrame->client()) |
| 752 m_webFrame->client()->willInsertBody(m_webFrame); | 754 m_webFrame->client()->willInsertBody(m_webFrame); |
| 753 } | 755 } |
| 754 | 756 |
| 755 WebServiceWorkerRegistry* FrameLoaderClientImpl::serviceWorkerRegistry() | 757 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider(PassOwnPtr<WebServiceWorkerProviderClient> client) |
| 756 { | 758 { |
| 757 if (!m_webFrame->client()) | 759 if (!m_webFrame->client()) |
| 758 return 0; | 760 return nullptr; |
| 759 return m_webFrame->client()->serviceWorkerRegistry(m_webFrame); | 761 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
, client.leakPtr())); |
| 760 } | 762 } |
| 761 | 763 |
| 762 void FrameLoaderClientImpl::didStopAllLoaders() | 764 void FrameLoaderClientImpl::didStopAllLoaders() |
| 763 { | 765 { |
| 764 if (m_webFrame->client()) | 766 if (m_webFrame->client()) |
| 765 m_webFrame->client()->didAbortLoading(m_webFrame); | 767 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 766 } | 768 } |
| 767 | 769 |
| 768 } // namespace WebKit | 770 } // namespace WebKit |
| OLD | NEW |