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

Side by Side Diff: content/common/view_messages.h

Issue 1344673002: Change all view messages in RendererBlinkPlatformImpl into being render process messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc-font
Patch Set: Created 5 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 1008
1009 // Asks the browser for a unique routing ID. 1009 // Asks the browser for a unique routing ID.
1010 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID, 1010 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID,
1011 int /* routing_id */) 1011 int /* routing_id */)
1012 1012
1013 // Asks the browser for the default audio hardware configuration. 1013 // Asks the browser for the default audio hardware configuration.
1014 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig, 1014 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig,
1015 media::AudioParameters /* input parameters */, 1015 media::AudioParameters /* input parameters */,
1016 media::AudioParameters /* output parameters */) 1016 media::AudioParameters /* output parameters */)
1017 1017
1018 // Asks the browser for the renderer process memory size stats.
1019 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes,
1020 size_t /* private_bytes */,
1021 size_t /* shared_bytes */)
1022
1023 // These three messages are sent to the parent RenderViewHost to display the 1018 // These three messages are sent to the parent RenderViewHost to display the
1024 // page/widget that was created by 1019 // page/widget that was created by
1025 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id 1020 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1026 // refers to the id that was returned from the Create message above. 1021 // refers to the id that was returned from the Create message above.
1027 // The initial_rect parameter is in screen coordinates. 1022 // The initial_rect parameter is in screen coordinates.
1028 // 1023 //
1029 // FUTURE: there will probably be flags here to control if the result is 1024 // FUTURE: there will probably be flags here to control if the result is
1030 // in a new window. 1025 // in a new window.
1031 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, 1026 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
1032 int /* route_id */, 1027 int /* route_id */,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 gfx::Rect /* node_bounds */) 1113 gfx::Rect /* node_bounds */)
1119 1114
1120 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) 1115 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor)
1121 1116
1122 #if defined(OS_WIN) 1117 #if defined(OS_WIN)
1123 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated, 1118 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
1124 gfx::NativeViewId /* dummy_activation_window */) 1119 gfx::NativeViewId /* dummy_activation_window */)
1125 1120
1126 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed, 1121 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed,
1127 gfx::NativeViewId /* dummy_activation_window */) 1122 gfx::NativeViewId /* dummy_activation_window */)
1128
1129 // Asks the browser for the user's monitor profile.
1130 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile,
1131 std::vector<char> /* profile */)
1132 #endif 1123 #endif
1133 1124
1134 // Get the list of proxies to use for |url|, as a semicolon delimited list 1125 // Get the list of proxies to use for |url|, as a semicolon delimited list
1135 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". 1126 // of "<TYPE> <HOST>:<PORT>" | "DIRECT".
1136 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, 1127 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
1137 GURL /* url */, 1128 GURL /* url */,
1138 bool /* result */, 1129 bool /* result */,
1139 std::string /* proxy list */) 1130 std::string /* proxy list */)
1140 1131
1141 // A renderer sends this to the browser process when it wants to create a 1132 // A renderer sends this to the browser process when it wants to create a
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */) 1262 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */)
1272 1263
1273 // Updates the minimum/maximum allowed zoom percent for this tab from the 1264 // Updates the minimum/maximum allowed zoom percent for this tab from the
1274 // default values. If |remember| is true, then the zoom setting is applied to 1265 // default values. If |remember| is true, then the zoom setting is applied to
1275 // other pages in the site and is saved, otherwise it only applies to this 1266 // other pages in the site and is saved, otherwise it only applies to this
1276 // tab. 1267 // tab.
1277 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, 1268 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
1278 int /* minimum_percent */, 1269 int /* minimum_percent */,
1279 int /* maximum_percent */) 1270 int /* maximum_percent */)
1280 1271
1281 // Notify the browser that this render process can or can't be suddenly
1282 // terminated.
1283 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
1284 bool /* enabled */)
1285
1286 IPC_MESSAGE_ROUTED3( 1272 IPC_MESSAGE_ROUTED3(
1287 ViewHostMsg_SwapCompositorFrame, 1273 ViewHostMsg_SwapCompositorFrame,
1288 uint32 /* output_surface_id */, 1274 uint32 /* output_surface_id */,
1289 cc::CompositorFrame /* frame */, 1275 cc::CompositorFrame /* frame */,
1290 std::vector<IPC::Message> /* messages_to_deliver_with_frame */) 1276 std::vector<IPC::Message> /* messages_to_deliver_with_frame */)
1291 1277
1292 // Message sent from the renderer to the browser to request that the browser
1293 // cache |data| associated with |url| and |expected_response_time|.
1294 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
1295 GURL /* url */,
1296 base::Time /* expected_response_time */,
1297 std::vector<char> /* data */)
1298
1299 // Send back a string to be recorded by UserMetrics. 1278 // Send back a string to be recorded by UserMetrics.
1300 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, 1279 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction,
1301 std::string /* action */) 1280 std::string /* action */)
1302 1281
1303 // Notifies the browser that the page was or was not saved as MHTML. 1282 // Notifies the browser that the page was or was not saved as MHTML.
1304 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, 1283 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML,
1305 int /* job_id */, 1284 int /* job_id */,
1306 int64 /* size of the MHTML file, -1 if error */) 1285 int64 /* size of the MHTML file, -1 if error */)
1307 1286
1308 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, 1287 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 // Instructs the browser to start plugin IME. 1407 // Instructs the browser to start plugin IME.
1429 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) 1408 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1430 1409
1431 // Receives content of a web page as plain text. 1410 // Receives content of a web page as plain text.
1432 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); 1411 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1433 #endif 1412 #endif
1434 1413
1435 // Adding a new message? Stick to the sort order above: first platform 1414 // Adding a new message? Stick to the sort order above: first platform
1436 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1415 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1437 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1416 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698