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

Unified Diff: third_party/WebKit/public/web/WebPlugin.h

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 9 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/public/web/WebPlugin.h
diff --git a/third_party/WebKit/public/web/WebPlugin.h b/third_party/WebKit/public/web/WebPlugin.h
index 6e6403a7a6a5e5ce5129610d46044c0bbe83a7b6..5a490bd64d2aeed58af11d75780d6061ce0e7914 100644
--- a/third_party/WebKit/public/web/WebPlugin.h
+++ b/third_party/WebKit/public/web/WebPlugin.h
@@ -238,6 +238,12 @@ class WebPlugin {
virtual void rotateView(RotationType type) {}
virtual bool isPlaceholder() { return true; }
+ // Check whether a plugin load lead to the instantiation of a
+ // PluginPlaceholderBase derived plugin, which is not allowed
Bernhard Bauer 2017/03/31 09:25:20 This is a layering violation, as Blink shouldn't k
George Joseph 2017/04/03 00:22:34 Done.
+ // to load later on. isPlaceholder() is used by the pepper
Bernhard Bauer 2017/03/31 09:25:20 This sentence should be a comment on isPlaceholder
+ // webplugin implementation to check if a WebHelperPlugin
+ // did create a PlaceHolder Plugin.
Bernhard Bauer 2017/03/31 09:25:20 Nit: capitalized weirdly (placeholder should be a
George Joseph 2017/04/03 00:22:34 Done.
+ virtual bool isErrorPlaceholder() { return false; };
Bernhard Bauer 2017/03/31 09:25:21 Nit: No semicolon after the closing brace.
George Joseph 2017/04/03 00:22:34 Done.
protected:
~WebPlugin() {}

Powered by Google App Engine
This is Rietveld 408576698