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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 16 matching lines...) Expand all
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef FrameLoaderClient_h 30 #ifndef FrameLoaderClient_h
31 #define FrameLoaderClient_h 31 #define FrameLoaderClient_h
32 32
33 #include "core/dom/IconURL.h" 33 #include "core/dom/IconURL.h"
34 #include "core/frame/FrameClient.h" 34 #include "core/frame/FrameClient.h"
35 #include "core/loader/FrameLoaderTypes.h" 35 #include "core/loader/FrameLoaderTypes.h"
36 #include "core/loader/NavigationPolicy.h" 36 #include "core/loader/NavigationPolicy.h"
37 #include "platform/heap/Handle.h"
37 #include "platform/network/ResourceLoadPriority.h" 38 #include "platform/network/ResourceLoadPriority.h"
38 #include "platform/weborigin/Referrer.h" 39 #include "platform/weborigin/Referrer.h"
39 #include "wtf/Forward.h" 40 #include "wtf/Forward.h"
40 #include "wtf/Vector.h" 41 #include "wtf/Vector.h"
41 #include <v8.h> 42 #include <v8.h>
42 43
43 namespace blink { 44 namespace blink {
44 class WebCookieJar; 45 class WebCookieJar;
45 class WebRTCPeerConnectionHandler; 46 class WebRTCPeerConnectionHandler;
46 class WebServiceWorkerProvider; 47 class WebServiceWorkerProvider;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector<String>& removedSelectors) = 0; 136 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector<String>& removedSelectors) = 0;
136 137
137 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) = 0; 138 virtual PassRefPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) = 0;
138 139
139 virtual String userAgent(const KURL&) = 0; 140 virtual String userAgent(const KURL&) = 0;
140 141
141 virtual String doNotTrackValue() = 0; 142 virtual String doNotTrackValue() = 0;
142 143
143 virtual void transitionToCommittedForNewPage() = 0; 144 virtual void transitionToCommittedForNewPage() = 0;
144 145
145 virtual PassRefPtr<LocalFrame> createFrame(const KURL&, const AtomicStri ng& name, const Referrer&, HTMLFrameOwnerElement*) = 0; 146 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const KURL&, cons t AtomicString& name, const Referrer&, HTMLFrameOwnerElement*) = 0;
146 // Whether or not plugin creation should fail if the HTMLPlugInElement i sn't in the DOM after plugin initialization. 147 // Whether or not plugin creation should fail if the HTMLPlugInElement i sn't in the DOM after plugin initialization.
147 enum DetachedPluginPolicy { 148 enum DetachedPluginPolicy {
148 FailOnDetachedPlugin, 149 FailOnDetachedPlugin,
149 AllowDetachedPlugin, 150 AllowDetachedPlugin,
150 }; 151 };
151 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0; 152 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0;
152 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, DetachedPluginPolicy) = 0; 153 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, DetachedPluginPolicy) = 0;
153 154
154 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param Values) = 0; 155 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param Values) = 0;
155 156
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual void didStopAllLoaders() { } 216 virtual void didStopAllLoaders() { }
216 217
217 virtual void dispatchDidChangeManifest() { } 218 virtual void dispatchDidChangeManifest() { }
218 219
219 virtual bool isFrameLoaderClientImpl() const { return false; } 220 virtual bool isFrameLoaderClientImpl() const { return false; }
220 }; 221 };
221 222
222 } // namespace blink 223 } // namespace blink
223 224
224 #endif // FrameLoaderClient_h 225 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698