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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.h

Issue 2719333002: second stage
Patch Set: Need to get around resource loading without web/ Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLPlugInElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.h b/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
index b88a672e16ba1d65cfa2d9ce7bcbf30d45102f9a..8358ed69f9f1a6b065e92b274ab385ec9f8f5cad 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
@@ -35,6 +35,7 @@ namespace blink {
class HTMLImageLoader;
class LayoutPart;
class LayoutEmbeddedItem;
+class PluginClient;
class Widget;
enum PreferPlugInsForImagesOption {
@@ -145,6 +146,7 @@ class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement {
virtual LayoutPart* existingLayoutPart() const = 0;
virtual void updateWidgetInternal() = 0;
+ bool loadFrame(const KURL& resourceUrl);
bool loadPlugin(const KURL&,
const String& mimeType,
const Vector<String>& paramNames,
@@ -179,6 +181,11 @@ class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement {
// means the frame is active, we save off m_widget here while
// the plugin is persisting but not being displayed.
Member<Widget> m_persistedPluginWidget;
+
+ // The plugin might have a client instead of a plugin widget. This relates to
+ // the cases were the plugin is implemented using frames rather than plugin
+ // views and WebPlugins.
+ Member<PluginClient> m_pluginClient;
};
inline bool isHTMLPlugInElement(const HTMLElement& element) {

Powered by Google App Engine
This is Rietveld 408576698