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

Unified Diff: content/public/browser/render_view_host.h

Issue 10553014: Added RenderView.DocumentHasImages query method (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated comments on RenderViewHost.DocumentHasImages Created 8 years, 6 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
« no previous file with comments | « content/public/browser/notification_types.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_view_host.h
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h
index 14226ea7e429fe96ed6637818cd98e5d5e3af83e..57b2988fbdd7d3085ca1d30e69f5f028baf33012 100644
--- a/content/public/browser/render_view_host.h
+++ b/content/public/browser/render_view_host.h
@@ -268,6 +268,13 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Passes a list of Webkit preferences to the renderer.
virtual void UpdateWebkitPreferences(
const webkit_glue::WebPreferences& prefs) = 0;
+
+ // Determine whether or not the document has any image elements. The returned
+ // int is a unique id for the request. When the result is received from the
+ // renderer, the NOTIFICATION_DOCUMENT_HAS_IMAGES_RESPONSE notification is
+ // sent with a pair<int, bool> where the int is the unique id and the bool is
+ // the result of the call.
+ virtual int DocumentHasImages() = 0;
};
} // namespace content
« no previous file with comments | « content/public/browser/notification_types.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698