| 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 26 matching lines...) Expand all Loading... |
| 37 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class WebLocalFrameImpl; | 43 class WebLocalFrameImpl; |
| 44 | 44 |
| 45 class FrameLoaderClientImpl final : public FrameLoaderClient { | 45 class FrameLoaderClientImpl final : public FrameLoaderClient { |
| 46 public: | 46 public: |
| 47 static PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> create(WebLocalFrameImp
l*); | 47 static RawPtr<FrameLoaderClientImpl> create(WebLocalFrameImpl*); |
| 48 | 48 |
| 49 ~FrameLoaderClientImpl() override; | 49 ~FrameLoaderClientImpl() override; |
| 50 | 50 |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 | 52 |
| 53 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } | 53 WebLocalFrameImpl* webFrame() const { return m_webFrame.get(); } |
| 54 | 54 |
| 55 // FrameLoaderClient ---------------------------------------------- | 55 // FrameLoaderClient ---------------------------------------------- |
| 56 | 56 |
| 57 void didCreateNewDocument() override; | 57 void didCreateNewDocument() override; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool navigateBackForward(int offset) const override; | 110 bool navigateBackForward(int offset) const override; |
| 111 void didAccessInitialDocument() override; | 111 void didAccessInitialDocument() override; |
| 112 void didDisplayInsecureContent() override; | 112 void didDisplayInsecureContent() override; |
| 113 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid
e; | 113 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid
e; |
| 114 void didDetectXSS(const KURL&, bool didBlockEntirePage) override; | 114 void didDetectXSS(const KURL&, bool didBlockEntirePage) override; |
| 115 void didDispatchPingLoader(const KURL&) override; | 115 void didDispatchPingLoader(const KURL&) override; |
| 116 void didDisplayContentWithCertificateErrors(const KURL&, const CString& secu
rityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo
) override; | 116 void didDisplayContentWithCertificateErrors(const KURL&, const CString& secu
rityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo
) override; |
| 117 void didRunContentWithCertificateErrors(const KURL&, const CString& security
Info, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) ov
erride; | 117 void didRunContentWithCertificateErrors(const KURL&, const CString& security
Info, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) ov
erride; |
| 118 void didChangePerformanceTiming() override; | 118 void didChangePerformanceTiming() override; |
| 119 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector
<String>& removedSelectors) override; | 119 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector
<String>& removedSelectors) override; |
| 120 PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con
st ResourceRequest&, const SubstituteData&) override; | 120 RawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const ResourceReque
st&, const SubstituteData&) override; |
| 121 WTF::String userAgent() override; | 121 WTF::String userAgent() override; |
| 122 WTF::String doNotTrackValue() override; | 122 WTF::String doNotTrackValue() override; |
| 123 void transitionToCommittedForNewPage() override; | 123 void transitionToCommittedForNewPage() override; |
| 124 PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadRequest&, cons
t WTF::AtomicString& name, HTMLFrameOwnerElement*) override; | 124 RawPtr<LocalFrame> createFrame(const FrameLoadRequest&, const WTF::AtomicStr
ing& name, HTMLFrameOwnerElement*) override; |
| 125 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const; | 125 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const; |
| 126 PassRefPtrWillBeRawPtr<Widget> createPlugin( | 126 RawPtr<Widget> createPlugin( |
| 127 HTMLPlugInElement*, const KURL&, | 127 HTMLPlugInElement*, const KURL&, |
| 128 const Vector<WTF::String>&, const Vector<WTF::String>&, | 128 const Vector<WTF::String>&, const Vector<WTF::String>&, |
| 129 const WTF::String&, bool loadManually, DetachedPluginPolicy) override; | 129 const WTF::String&, bool loadManually, DetachedPluginPolicy) override; |
| 130 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, WebMediaP
layer::LoadType, const WebURL&, WebMediaPlayerClient*) override; | 130 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, WebMediaP
layer::LoadType, const WebURL&, WebMediaPlayerClient*) override; |
| 131 PassOwnPtr<WebMediaSession> createWebMediaSession() override; | 131 PassOwnPtr<WebMediaSession> createWebMediaSession() override; |
| 132 ObjectContentType objectContentType( | 132 ObjectContentType objectContentType( |
| 133 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma
ges) override; | 133 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma
ges) override; |
| 134 void didChangeScrollOffset() override; | 134 void didChangeScrollOffset() override; |
| 135 void didUpdateCurrentHistoryItem() override; | 135 void didUpdateCurrentHistoryItem() override; |
| 136 void didRemoveAllPendingStylesheet() override; | 136 void didRemoveAllPendingStylesheet() override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; | 180 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable
rType) override; |
| 181 | 181 |
| 182 private: | 182 private: |
| 183 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); | 183 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); |
| 184 | 184 |
| 185 bool isFrameLoaderClientImpl() const override { return true; } | 185 bool isFrameLoaderClientImpl() const override { return true; } |
| 186 | 186 |
| 187 // The WebFrame that owns this object and manages its lifetime. Therefore, | 187 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 188 // the web frame object is guaranteed to exist. | 188 // the web frame object is guaranteed to exist. |
| 189 RawPtrWillBeMember<WebLocalFrameImpl> m_webFrame; | 189 Member<WebLocalFrameImpl> m_webFrame; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); | 192 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr
ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); |
| 193 | 193 |
| 194 } // namespace blink | 194 } // namespace blink |
| 195 | 195 |
| 196 #endif | 196 #endif |
| OLD | NEW |