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

Unified Diff: content/common/view_messages.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/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index f160752326f60f92e4d2b493c229d43c0655c40a..2721160514d04cc1b1f1b17b70d9720799e0f4e3 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1261,6 +1261,12 @@ IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData,
IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode,
AccessibilityMode)
+// Request for the renderer to determine if the document contains any image
+// elements. The id should be passed in the response message so the response
+// can be associated with the request.
+IPC_MESSAGE_ROUTED1(ViewMsg_DocumentHasImages,
+ int /* id */)
+
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.
@@ -1914,6 +1920,11 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
bool /* enabled */)
+// Response to ViewMSg_DocumentHasImages request.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_DocumentHasImagesResponse,
+ int, /* id */
+ bool /* has_images */)
+
#if defined(OS_MACOSX)
// On OSX, we cannot allocated shared memory from within the sandbox, so
// this call exists for the renderer to ask the browser to allocate memory
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/browser/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698