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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 26 matching lines...) Expand all
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool navigateBackForward(int offset) const override; 112 bool navigateBackForward(int offset) const override;
113 void didAccessInitialDocument() override; 113 void didAccessInitialDocument() override;
114 void didDisplayInsecureContent() override; 114 void didDisplayInsecureContent() override;
115 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid e; 115 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid e;
116 void didDetectXSS(const KURL&, bool didBlockEntirePage) override; 116 void didDetectXSS(const KURL&, bool didBlockEntirePage) override;
117 void didDispatchPingLoader(const KURL&) override; 117 void didDispatchPingLoader(const KURL&) override;
118 void didDisplayContentWithCertificateErrors(const KURL&, const CString& secu rityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo ) override; 118 void didDisplayContentWithCertificateErrors(const KURL&, const CString& secu rityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo ) override;
119 void didRunContentWithCertificateErrors(const KURL&, const CString& security Info, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) ov erride; 119 void didRunContentWithCertificateErrors(const KURL&, const CString& security Info, const WebURL& mainResourceUrl, const CString& mainResourceSecurityInfo) ov erride;
120 void didChangePerformanceTiming() override; 120 void didChangePerformanceTiming() override;
121 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector <String>& removedSelectors) override; 121 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector <String>& removedSelectors) override;
122 PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) override; 122 RawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, const ResourceReque st&, const SubstituteData&) override;
123 WTF::String userAgent() override; 123 WTF::String userAgent() override;
124 WTF::String doNotTrackValue() override; 124 WTF::String doNotTrackValue() override;
125 void transitionToCommittedForNewPage() override; 125 void transitionToCommittedForNewPage() override;
126 PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadRequest&, cons t WTF::AtomicString& name, HTMLFrameOwnerElement*) override; 126 RawPtr<LocalFrame> createFrame(const FrameLoadRequest&, const WTF::AtomicStr ing& name, HTMLFrameOwnerElement*) override;
127 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const; 127 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const;
128 PassRefPtrWillBeRawPtr<Widget> createPlugin( 128 RawPtr<Widget> createPlugin(
129 HTMLPlugInElement*, const KURL&, 129 HTMLPlugInElement*, const KURL&,
130 const Vector<WTF::String>&, const Vector<WTF::String>&, 130 const Vector<WTF::String>&, const Vector<WTF::String>&,
131 const WTF::String&, bool loadManually, DetachedPluginPolicy) override; 131 const WTF::String&, bool loadManually, DetachedPluginPolicy) override;
132 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const Web URL&, WebMediaPlayerClient*) override; 132 PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, const Web URL&, WebMediaPlayerClient*) override;
133 PassOwnPtr<WebMediaSession> createWebMediaSession() override; 133 PassOwnPtr<WebMediaSession> createWebMediaSession() override;
134 ObjectContentType getObjectContentType( 134 ObjectContentType getObjectContentType(
135 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma ges) override; 135 const KURL&, const WTF::String& mimeType, bool shouldPreferPlugInsForIma ges) override;
136 void didChangeScrollOffset() override; 136 void didChangeScrollOffset() override;
137 void didUpdateCurrentHistoryItem() override; 137 void didUpdateCurrentHistoryItem() override;
138 void didRemoveAllPendingStylesheet() override; 138 void didRemoveAllPendingStylesheet() override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override; 175 SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() override;
176 176
177 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio nCacheHostClient*) override; 177 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio nCacheHostClient*) override;
178 178
179 void dispatchDidChangeManifest() override; 179 void dispatchDidChangeManifest() override;
180 180
181 unsigned backForwardLength() override; 181 unsigned backForwardLength() override;
182 182
183 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override; 183 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override;
184 184
185 PassOwnPtrWillBeRawPtr<LinkResource> createServiceWorkerLinkResource(HTMLLin kElement*) override; 185 RawPtr<LinkResource> createServiceWorkerLinkResource(HTMLLinkElement*) overr ide;
186 186
187 private: 187 private:
188 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); 188 explicit FrameLoaderClientImpl(WebLocalFrameImpl*);
189 189
190 bool isFrameLoaderClientImpl() const override { return true; } 190 bool isFrameLoaderClientImpl() const override { return true; }
191 191
192 // The WebFrame that owns this object and manages its lifetime. Therefore, 192 // The WebFrame that owns this object and manages its lifetime. Therefore,
193 // the web frame object is guaranteed to exist. 193 // the web frame object is guaranteed to exist.
194 RawPtrWillBeMember<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