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

Side by Side Diff: Source/core/html/HTMLPlugInElement.h

Issue 76303002: CSP: Check <param> element values against the document's CSP before loading. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Async. Created 6 years, 11 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/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // necessary. 72 // necessary.
73 virtual RenderWidget* renderWidgetForJSBindings() const; 73 virtual RenderWidget* renderWidgetForJSBindings() const;
74 74
75 bool isImageType(); 75 bool isImageType();
76 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; } 76 bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForI mages; }
77 RenderEmbeddedObject* renderEmbeddedObject() const; 77 RenderEmbeddedObject* renderEmbeddedObject() const;
78 bool allowedToLoadFrameURL(const String& url); 78 bool allowedToLoadFrameURL(const String& url);
79 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues); 79 bool requestObject(const String& url, const String& mimeType, const Vector<S tring>& paramNames, const Vector<String>& paramValues);
80 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback); 80 bool shouldUsePlugin(const KURL&, const String& mimeType, bool hasFallback, bool& useFallback);
81 81
82 void dispatchErrorEvent();
83
82 String m_serviceType; 84 String m_serviceType;
83 String m_url; 85 String m_url;
84 KURL m_loadedUrl; 86 KURL m_loadedUrl;
85 OwnPtr<HTMLImageLoader> m_imageLoader; 87 OwnPtr<HTMLImageLoader> m_imageLoader;
86 bool m_isDelayingLoadEvent; 88 bool m_isDelayingLoadEvent;
87 89
88 private: 90 private:
89 // EventTarget functions: 91 // EventTarget functions:
90 virtual void removeAllEventListeners() OVERRIDE FINAL; 92 virtual void removeAllEventListeners() OVERRIDE FINAL;
91 93
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool m_needsWidgetUpdate; 133 bool m_needsWidgetUpdate;
132 bool m_shouldPreferPlugInsForImages; 134 bool m_shouldPreferPlugInsForImages;
133 DisplayState m_displayState; 135 DisplayState m_displayState;
134 }; 136 };
135 137
136 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement()); 138 DEFINE_NODE_TYPE_CASTS(HTMLPlugInElement, isPluginElement());
137 139
138 } // namespace WebCore 140 } // namespace WebCore
139 141
140 #endif // HTMLPlugInElement_h 142 #endif // HTMLPlugInElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698