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

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

Issue 1313763002: Blink Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge origin/master Created 5 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
« no previous file with comments | « Source/core/loader/EmptyClients.cpp ('k') | Source/core/plugins/PluginPlaceholder.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class DocumentLoader; 50 class DocumentLoader;
51 class FetchRequest; 51 class FetchRequest;
52 class HTMLAppletElement; 52 class HTMLAppletElement;
53 class HTMLFormElement; 53 class HTMLFormElement;
54 class HTMLFrameOwnerElement; 54 class HTMLFrameOwnerElement;
55 class HTMLMediaElement; 55 class HTMLMediaElement;
56 class HTMLPlugInElement; 56 class HTMLPlugInElement;
57 class HistoryItem; 57 class HistoryItem;
58 class KURL; 58 class KURL;
59 class LocalFrame; 59 class LocalFrame;
60 class PluginPlaceholder;
61 class ResourceError; 60 class ResourceError;
62 class ResourceRequest; 61 class ResourceRequest;
63 class ResourceResponse; 62 class ResourceResponse;
64 class SecurityOrigin; 63 class SecurityOrigin;
65 class SharedWorkerRepositoryClient; 64 class SharedWorkerRepositoryClient;
66 class SubstituteData; 65 class SubstituteData;
67 class WebApplicationCacheHost; 66 class WebApplicationCacheHost;
68 class WebApplicationCacheHostClient; 67 class WebApplicationCacheHostClient;
69 class WebCookieJar; 68 class WebCookieJar;
70 class WebMediaPlayer; 69 class WebMediaPlayer;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 144
146 virtual void transitionToCommittedForNewPage() = 0; 145 virtual void transitionToCommittedForNewPage() = 0;
147 146
148 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; 147 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0;
149 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization. 148 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization.
150 enum DetachedPluginPolicy { 149 enum DetachedPluginPolicy {
151 FailOnDetachedPlugin, 150 FailOnDetachedPlugin,
152 AllowDetachedPlugin, 151 AllowDetachedPlugin,
153 }; 152 };
154 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0; 153 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
155
156 // Called before plugin creation in order to ask the embedder whether a
157 // placeholder should be substituted instead.
158 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder(Do cument&, const KURL&, const Vector<String>& paramNames, const Vector<String>& pa ramValues, const String& mimeType, bool loadManually) = 0;
159
160 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0; 154 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0;
161 155
162 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String >& paramValues) = 0; 156 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String >& paramValues) = 0;
163 157
164 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0; 158 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0;
165 159
166 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0; 160 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0;
167 161
168 virtual void didCreateNewDocument() = 0; 162 virtual void didCreateNewDocument() = 0;
169 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 163 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 BeforeUnloadHandler, 237 BeforeUnloadHandler,
244 UnloadHandler, 238 UnloadHandler,
245 }; 239 };
246 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 240 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
247 241
248 }; 242 };
249 243
250 } // namespace blink 244 } // namespace blink
251 245
252 #endif // FrameLoaderClient_h 246 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.cpp ('k') | Source/core/plugins/PluginPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698