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

Unified Diff: components/plugins/renderer/webview_plugin.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: components/plugins/renderer/webview_plugin.h
diff --git a/components/plugins/renderer/webview_plugin.h b/components/plugins/renderer/webview_plugin.h
index 7f4ad1045a850bad918d6c85c898a0247a61a71a..161ebf19874aafc1cdb98acee645198647a49e4a 100644
--- a/components/plugins/renderer/webview_plugin.h
+++ b/components/plugins/renderer/webview_plugin.h
@@ -105,6 +105,9 @@ class WebViewPlugin : public blink::WebPlugin,
void didReceiveData(const char* data, int data_length) override;
void didFinishLoading() override;
void didFailLoading(const blink::WebURLError& error) override;
+ bool isPlaceholder() override;
+ void markAsErrorPlaceholder();
Bernhard Bauer 2017/03/28 10:55:59 These two methods are not overrides of WebPlugin,
George Joseph 2017/03/30 08:41:43 Done.
+ void unmarkAsErrorPlaceholder();
private:
friend class base::DeleteHelper<WebViewPlugin>;
@@ -138,6 +141,7 @@ class WebViewPlugin : public blink::WebPlugin,
bool focused_;
bool is_painting_;
bool is_resizing_;
+ bool placeholder = false;
Bernhard Bauer 2017/03/28 10:55:59 Member variables in Chromium style end with an und
George Joseph 2017/03/30 08:41:43 Done.
// A helper that handles interaction from WebViewPlugin's internal WebView.
class WebViewHelper : public blink::WebViewClient,

Powered by Google App Engine
This is Rietveld 408576698