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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 1744003: Send content settings based on the URL to the renderer instead of just the host. (Closed)
Patch Set: nits Created 10 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 string16 /* message */, 338 string16 /* message */,
339 WebKit::WebConsoleMessage::Level /* message_level */) 339 WebKit::WebConsoleMessage::Level /* message_level */)
340 340
341 // RenderViewHostDelegate::RenderViewCreated method sends this message to a 341 // RenderViewHostDelegate::RenderViewCreated method sends this message to a
342 // new renderer to notify it that it will host developer tools UI and should 342 // new renderer to notify it that it will host developer tools UI and should
343 // set up all neccessary bindings and create DevToolsClient instance that 343 // set up all neccessary bindings and create DevToolsClient instance that
344 // will handle communication with inspected page DevToolsAgent. 344 // will handle communication with inspected page DevToolsAgent.
345 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient) 345 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient)
346 346
347 // Change the zoom level for the current main frame. If the level actually 347 // Change the zoom level for the current main frame. If the level actually
348 // changes, a ViewHostMsg_DidZoomHost message will be sent back to the browser 348 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
349 // telling it what host got zoomed and what its current zoom level is. 349 // telling it what url got zoomed and what its current zoom level is.
350 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 350 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
351 PageZoom::Function /* function */) 351 PageZoom::Function /* function */)
352 352
353 // Set the zoom level for a particular hostname that the renderer is in the 353 // Set the zoom level for a particular url that the renderer is in the
354 // process of loading. This will be stored, to be used if the load commits 354 // process of loading. This will be stored, to be used if the load commits
355 // and ignored otherwise. 355 // and ignored otherwise.
356 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingHost, 356 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
357 std::string /* host */, 357 GURL /* url */,
358 int /* zoom_level */) 358 int /* zoom_level */)
359 359
360 // Set the zoom level for a particular hostname, so all render views 360 // Set the zoom level for a particular url, so all render views
361 // displaying this host can update their zoom levels to match. 361 // displaying this url can update their zoom levels to match.
362 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentHost, 362 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL,
363 std::string /* host */, 363 GURL /* url */,
364 int /* zoom_level */) 364 int /* zoom_level */)
365 365
366 // Set the content settings for a particular hostname that the renderer is in 366 // Set the content settings for a particular url that the renderer is in the
367 // the process of loading. This will be stored, to be used if the load 367 // process of loading. This will be stored, to be used if the load commits
368 // commits and ignored otherwise. 368 // and ignored otherwise.
369 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingHost, 369 IPC_MESSAGE_ROUTED2(ViewMsg_SetContentSettingsForLoadingURL,
370 std::string /* host */, 370 GURL /* url */,
371 ContentSettings /* content_settings */) 371 ContentSettings /* content_settings */)
372 372
373 // Set the content settings for a particular url, so all render views 373 // Set the content settings for a particular url, so all render views
374 // displaying this host url update their content settings to match. 374 // displaying this host url update their content settings to match.
375 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL, 375 IPC_MESSAGE_CONTROL2(ViewMsg_SetContentSettingsForCurrentURL,
376 GURL /* url */, 376 GURL /* url */,
377 ContentSettings /* content_settings */) 377 ContentSettings /* content_settings */)
378 378
379 // Change encoding of page in the renderer. 379 // Change encoding of page in the renderer.
380 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 380 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 // Sent by the renderer process to acknowledge receipt of a 1675 // Sent by the renderer process to acknowledge receipt of a
1676 // DownloadProgress message. 1676 // DownloadProgress message.
1677 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK, 1677 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK,
1678 int /* request_id */) 1678 int /* request_id */)
1679 1679
1680 // Sent by the renderer process to acknowledge receipt of a 1680 // Sent by the renderer process to acknowledge receipt of a
1681 // UploadProgress message. 1681 // UploadProgress message.
1682 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, 1682 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK,
1683 int /* request_id */) 1683 int /* request_id */)
1684 1684
1685 // Sent when the renderer changes the zoom level for a particular host, so the 1685 // Sent when the renderer changes the zoom level for a particular url, so the
1686 // browser can update its records. 1686 // browser can update its records.
1687 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomHost, 1687 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomURL,
1688 std::string /* host */, 1688 GURL /* url */,
1689 int /* zoom_level */) 1689 int /* zoom_level */)
1690 1690
1691 #if defined(OS_WIN) 1691 #if defined(OS_WIN)
1692 // Duplicates a shared memory handle from the renderer to the browser. Then 1692 // Duplicates a shared memory handle from the renderer to the browser. Then
1693 // the renderer can flush the handle. 1693 // the renderer can flush the handle.
1694 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, 1694 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection,
1695 base::SharedMemoryHandle /* renderer handle */, 1695 base::SharedMemoryHandle /* renderer handle */,
1696 base::SharedMemoryHandle /* browser handle */) 1696 base::SharedMemoryHandle /* browser handle */)
1697 #endif 1697 #endif
1698 1698
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 int /* render_view_id */, 2301 int /* render_view_id */,
2302 int /* bridge_id */) 2302 int /* bridge_id */)
2303 2303
2304 // The |render_view_id| and |bridge_id| requests Geolocation service to 2304 // The |render_view_id| and |bridge_id| requests Geolocation service to
2305 // resume. 2305 // resume.
2306 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, 2306 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume,
2307 int /* render_view_id */, 2307 int /* render_view_id */,
2308 int /* bridge_id */) 2308 int /* bridge_id */)
2309 2309
2310 IPC_END_MESSAGES(ViewHost) 2310 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/renderer/render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698