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

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

Issue 6883020: Make icon_messages use the IPC macros for defining the structs and the serialization code, and mo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/icon_messages.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 // TODO(erg): This list has been temporarily annotated by erg while doing work 11 // TODO(erg): This list has been temporarily annotated by erg while doing work
12 // on which headers to pull out. 12 // on which headers to pull out.
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "base/shared_memory.h" 16 #include "base/shared_memory.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "chrome/common/common_param_traits.h" 20 #include "chrome/common/common_param_traits.h"
21 #include "chrome/common/icon_messages.h"
22 #include "chrome/common/instant_types.h" 21 #include "chrome/common/instant_types.h"
23 #include "chrome/common/nacl_types.h" 22 #include "chrome/common/nacl_types.h"
24 #include "chrome/common/search_provider.h" 23 #include "chrome/common/search_provider.h"
25 #include "chrome/common/thumbnail_score.h" 24 #include "chrome/common/thumbnail_score.h"
26 #include "chrome/common/translate_errors.h" 25 #include "chrome/common/translate_errors.h"
27 #include "chrome/common/view_types.h" 26 #include "chrome/common/view_types.h"
28 #include "content/common/common_param_traits.h" 27 #include "content/common/common_param_traits.h"
29 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 186 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
188 GURL /* url of page which is needed to save */) 187 GURL /* url of page which is needed to save */)
189 188
190 // Get html data by serializing all frames of current page with lists 189 // Get html data by serializing all frames of current page with lists
191 // which contain all resource links that have local copy. 190 // which contain all resource links that have local copy.
192 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, 191 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
193 std::vector<GURL> /* urls that have local copy */, 192 std::vector<GURL> /* urls that have local copy */,
194 std::vector<FilePath> /* paths of local copy */, 193 std::vector<FilePath> /* paths of local copy */,
195 FilePath /* local directory path */) 194 FilePath /* local directory path */)
196 195
197 // Requests the renderer to download the specified favicon image encode it as
198 // PNG and send the PNG data back ala ViewHostMsg_DidDownloadFavicon.
199 IPC_MESSAGE_ROUTED3(ViewMsg_DownloadFavicon,
200 int /* identifier for the request */,
201 GURL /* URL of the image */,
202 int /* Size of the image. Normally 0, but set if you have
203 a preferred image size to request, such as when
204 downloading the favicon */)
205
206 // Asks the renderer to send back stats on the WebCore cache broken down by 196 // Asks the renderer to send back stats on the WebCore cache broken down by
207 // resource types. 197 // resource types.
208 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats) 198 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats)
209 199
210 // Asks the renderer to send back Histograms. 200 // Asks the renderer to send back Histograms.
211 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, 201 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms,
212 int /* sequence number of Renderer Histograms. */) 202 int /* sequence number of Renderer Histograms. */)
213 203
214 #if defined(USE_TCMALLOC) 204 #if defined(USE_TCMALLOC)
215 // Asks the renderer to send back tcmalloc stats. 205 // Asks the renderer to send back tcmalloc stats.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // binary data as the second parameter. 288 // binary data as the second parameter.
299 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail, 289 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail,
300 GURL /* url */, 290 GURL /* url */,
301 ThumbnailScore /* score */, 291 ThumbnailScore /* score */,
302 SkBitmap /* bitmap */) 292 SkBitmap /* bitmap */)
303 293
304 // Send a snapshot of the tab contents to the render host. 294 // Send a snapshot of the tab contents to the render host.
305 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot, 295 IPC_MESSAGE_ROUTED1(ViewHostMsg_Snapshot,
306 SkBitmap /* bitmap */) 296 SkBitmap /* bitmap */)
307 297
308 // Notification that the urls for the favicon of a site has been determined.
309 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL,
310 int32 /* page_id */,
311 std::vector<FaviconURL> /* urls of the favicon */)
312
313 // Following message is used to communicate the values received by the 298 // Following message is used to communicate the values received by the
314 // callback binding the JS to Cpp. 299 // callback binding the JS to Cpp.
315 // An instance of browser that has an automation host listening to it can 300 // An instance of browser that has an automation host listening to it can
316 // have a javascript send a native value (string, number, boolean) to the 301 // have a javascript send a native value (string, number, boolean) to the
317 // listener in Cpp. (DomAutomationController) 302 // listener in Cpp. (DomAutomationController)
318 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 303 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
319 std::string /* json_string */, 304 std::string /* json_string */,
320 int /* automation_id */) 305 int /* automation_id */)
321 306
322 // A message for an external host. 307 // A message for an external host.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, 377 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
393 std::vector<GURL> /* all savable resource links */, 378 std::vector<GURL> /* all savable resource links */,
394 std::vector<GURL> /* all referrers of resource links */, 379 std::vector<GURL> /* all referrers of resource links */,
395 std::vector<GURL> /* all frame links */) 380 std::vector<GURL> /* all frame links */)
396 381
397 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, 382 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData,
398 GURL /* frame's url */, 383 GURL /* frame's url */,
399 std::string /* data buffer */, 384 std::string /* data buffer */,
400 int32 /* complete status */) 385 int32 /* complete status */)
401 386
402 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavicon,
403 int /* Identifier of the request */,
404 GURL /* URL of the image */,
405 bool /* true if there was a network error */,
406 SkBitmap /* image_data */)
407
408 // Provide the browser process with information about the WebCore resource 387 // Provide the browser process with information about the WebCore resource
409 // cache. 388 // cache.
410 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, 389 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats,
411 WebKit::WebCache::ResourceTypeStats) 390 WebKit::WebCache::ResourceTypeStats)
412 391
413 // Message sent from renderer to the browser to update the state of a command. 392 // Message sent from renderer to the browser to update the state of a command.
414 // The |command| parameter is a RenderViewCommand. The |checked_state| parameter 393 // The |command| parameter is a RenderViewCommand. The |checked_state| parameter
415 // is a CommandCheckedState. 394 // is a CommandCheckedState.
416 IPC_MESSAGE_ROUTED3(ViewHostMsg_CommandStateChanged, 395 IPC_MESSAGE_ROUTED3(ViewHostMsg_CommandStateChanged,
417 int /* command */, 396 int /* command */,
(...skipping 24 matching lines...) Expand all
442 int32 /* page_id */, 421 int32 /* page_id */,
443 bool /* result */) 422 bool /* result */)
444 423
445 // JavaScript related messages ----------------------------------------------- 424 // JavaScript related messages -----------------------------------------------
446 425
447 // Notify the JavaScript engine in the render to change its parameters 426 // Notify the JavaScript engine in the render to change its parameters
448 // while performing stress testing. 427 // while performing stress testing.
449 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 428 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
450 int /* cmd */, 429 int /* cmd */,
451 int /* param */) 430 int /* param */)
OLDNEW
« no previous file with comments | « chrome/common/icon_messages.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698