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

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: 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
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 7d5c48e7d529242091c4c54f51ebd7918882c70c..99b830fd585defd5e3a46adb070bff1a86ba5613 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1250,6 +1250,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.
@@ -1903,6 +1909,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

Powered by Google App Engine
This is Rietveld 408576698