Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef FrameLoaderClientImpl_h 32 #ifndef FrameLoaderClientImpl_h
33 #define FrameLoaderClientImpl_h 33 #define FrameLoaderClientImpl_h
34 34
35 #include "core/loader/FrameLoaderClient.h" 35 #include "core/loader/FrameLoaderClient.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
38 #include "public/platform/WebInsecureRequestPolicy.h" 38 #include "public/platform/WebInsecureRequestPolicy.h"
39 #include "wtf/PassOwnPtr.h"
39 #include "wtf/RefPtr.h" 40 #include "wtf/RefPtr.h"
40 #include <memory>
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class WebLocalFrameImpl; 44 class WebLocalFrameImpl;
45 45
46 class FrameLoaderClientImpl final : public FrameLoaderClient { 46 class FrameLoaderClientImpl final : public FrameLoaderClient {
47 public: 47 public:
48 static FrameLoaderClientImpl* create(WebLocalFrameImpl*); 48 static FrameLoaderClientImpl* create(WebLocalFrameImpl*);
49 49
50 ~FrameLoaderClientImpl() override; 50 ~FrameLoaderClientImpl() override;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 DocumentLoader* createDocumentLoader(LocalFrame*, const ResourceRequest&, co nst SubstituteData&) override; 124 DocumentLoader* createDocumentLoader(LocalFrame*, const ResourceRequest&, co nst SubstituteData&) override;
125 WTF::String userAgent() override; 125 WTF::String userAgent() override;
126 WTF::String doNotTrackValue() override; 126 WTF::String doNotTrackValue() override;
127 void transitionToCommittedForNewPage() override; 127 void transitionToCommittedForNewPage() override;
128 LocalFrame* createFrame(const FrameLoadRequest&, const WTF::AtomicString& na me, HTMLFrameOwnerElement*) override; 128 LocalFrame* createFrame(const FrameLoadRequest&, const WTF::AtomicString& na me, HTMLFrameOwnerElement*) override;
129 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const; 129 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const;
130 Widget* createPlugin( 130 Widget* createPlugin(
131 HTMLPlugInElement*, const KURL&, 131 HTMLPlugInElement*, const KURL&,
132 const Vector<WTF::String>&, const Vector<WTF::String>&, 132 const Vector<WTF::String>&, const Vector<WTF::String>&,
133 const WTF::String&, bool loadManually, DetachedPluginPolicy) override; 133 const WTF::String&, bool loadManually, DetachedPluginPolicy) override;
134 std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, cons t WebMediaPlayerSource&, WebMediaPlayerClient*) override; 134 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const Web MediaPlayerSource&, WebMediaPlayerClient*) override;
135 std::unique_ptr<WebMediaSession> createWebMediaSession() override; 135 PassOwnPtr<WebMediaSession> createWebMediaSession() override;
136 ObjectContentType getObjectContentType( 136 ObjectContentType getObjectContentType(
137 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma ges) override; 137 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma ges) override;
138 void didChangeScrollOffset() override; 138 void didChangeScrollOffset() override;
139 void didUpdateCurrentHistoryItem() override; 139 void didUpdateCurrentHistoryItem() override;
140 bool allowScript(bool enabledPerSettings) override; 140 bool allowScript(bool enabledPerSettings) override;
141 bool allowScriptFromSource(bool enabledPerSettings, const KURL& scriptURL) o verride; 141 bool allowScriptFromSource(bool enabledPerSettings, const KURL& scriptURL) o verride;
142 bool allowPlugins(bool enabledPerSettings) override; 142 bool allowPlugins(bool enabledPerSettings) override;
143 bool allowImage(bool enabledPerSettings, const KURL& imageURL) override; 143 bool allowImage(bool enabledPerSettings, const KURL& imageURL) override;
144 bool allowDisplayingInsecureContent(bool enabledPerSettings, const KURL&) ov erride; 144 bool allowDisplayingInsecureContent(bool enabledPerSettings, const KURL&) ov erride;
145 bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOrigin*, c onst KURL&) override; 145 bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOrigin*, c onst KURL&) override;
(...skipping 12 matching lines...) Expand all
158 void didChangeFrameOwnerProperties(HTMLFrameElementBase*) override; 158 void didChangeFrameOwnerProperties(HTMLFrameElementBase*) override;
159 159
160 void dispatchWillOpenWebSocket(WebSocketHandle*) override; 160 void dispatchWillOpenWebSocket(WebSocketHandle*) override;
161 161
162 void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectionHandler *) override; 162 void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectionHandler *) override;
163 163
164 bool allowWebGL(bool enabledPerSettings) override; 164 bool allowWebGL(bool enabledPerSettings) override;
165 165
166 void dispatchWillInsertBody() override; 166 void dispatchWillInsertBody() override;
167 167
168 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() over ride; 168 PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() override;
169 bool isControlledByServiceWorker(DocumentLoader&) override; 169 bool isControlledByServiceWorker(DocumentLoader&) override;
170 int64_t serviceWorkerID(DocumentLoader&) override; 170 int64_t serviceWorkerID(DocumentLoader&) override;
171 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override; 171 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override;
172 172
173 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost(WebAppli cationCacheHostClient*) override; 173 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio nCacheHostClient*) override;
174 174
175 void dispatchDidChangeManifest() override; 175 void dispatchDidChangeManifest() override;
176 176
177 unsigned backForwardLength() override; 177 unsigned backForwardLength() override;
178 178
179 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override; 179 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override;
180 180
181 BlameContext* frameBlameContext() override; 181 BlameContext* frameBlameContext() override;
182 182
183 LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) override; 183 LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) override;
(...skipping 10 matching lines...) Expand all
194 Member<WebLocalFrameImpl> m_webFrame; 194 Member<WebLocalFrameImpl> m_webFrame;
195 195
196 String m_userAgent; 196 String m_userAgent;
197 }; 197 };
198 198
199 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 199 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
200 200
201 } // namespace blink 201 } // namespace blink
202 202
203 #endif 203 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698