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

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

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/rendering/RenderPart.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual String doNotTrackValue() = 0; 157 virtual String doNotTrackValue() = 0;
158 158
159 virtual void transitionToCommittedForNewPage() = 0; 159 virtual void transitionToCommittedForNewPage() = 0;
160 160
161 virtual PassRefPtr<LocalFrame> createFrame(const KURL&, const AtomicStri ng& name, const Referrer&, HTMLFrameOwnerElement*) = 0; 161 virtual PassRefPtr<LocalFrame> createFrame(const KURL&, const AtomicStri ng& name, const Referrer&, HTMLFrameOwnerElement*) = 0;
162 // Whether or not plugin creation should fail if the HTMLPlugInElement i sn't in the DOM after plugin initialization. 162 // Whether or not plugin creation should fail if the HTMLPlugInElement i sn't in the DOM after plugin initialization.
163 enum DetachedPluginPolicy { 163 enum DetachedPluginPolicy {
164 FailOnDetachedPlugin, 164 FailOnDetachedPlugin,
165 AllowDetachedPlugin, 165 AllowDetachedPlugin,
166 }; 166 };
167 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0;
167 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, DetachedPluginPolicy) = 0; 168 virtual PassRefPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, DetachedPluginPolicy) = 0;
168 169
169 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param Values) = 0; 170 virtual PassRefPtr<Widget> createJavaAppletWidget(HTMLAppletElement*, co nst KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& param Values) = 0;
170 171
171 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0; 172 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0;
172 173
173 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld&) = 0; 174 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld&) = 0;
174 virtual void documentElementAvailable() = 0; 175 virtual void documentElementAvailable() = 0;
175 176
176 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensi onGroup, int worldId) = 0; 177 virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensi onGroup, int worldId) = 0;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCach eHost(blink::WebApplicationCacheHostClient*) = 0; 227 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCach eHost(blink::WebApplicationCacheHostClient*) = 0;
227 228
228 virtual void didStopAllLoaders() { } 229 virtual void didStopAllLoaders() { }
229 230
230 virtual bool isFrameLoaderClientImpl() const { return false; } 231 virtual bool isFrameLoaderClientImpl() const { return false; }
231 }; 232 };
232 233
233 } // namespace WebCore 234 } // namespace WebCore
234 235
235 #endif // FrameLoaderClient_h 236 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/rendering/RenderPart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698