| OLD | NEW |
| 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 // 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 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, | 272 IPC_MESSAGE_ROUTED4(ChromeViewMsg_WebUIJavaScript, |
| 273 base::string16, /* frame_xpath */ | 273 base::string16, /* frame_xpath */ |
| 274 base::string16, /* jscript_url */ | 274 base::string16, /* jscript_url */ |
| 275 int, /* ID */ | 275 int, /* ID */ |
| 276 bool /* If true, result is sent back. */) | 276 bool /* If true, result is sent back. */) |
| 277 | 277 |
| 278 // Set the content setting rules stored by the renderer. | 278 // Set the content setting rules stored by the renderer. |
| 279 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, | 279 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetContentSettingRules, |
| 280 RendererContentSettingRules /* rules */) | 280 RendererContentSettingRules /* rules */) |
| 281 | 281 |
| 282 // Tells the render view to load all blocked plugins with the given identifier. | 282 // Tells the render frame to load all blocked plugins with the given identifier. |
| 283 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, | 283 IPC_MESSAGE_ROUTED1(ChromeViewMsg_LoadBlockedPlugins, |
| 284 std::string /* identifier */) | 284 std::string /* identifier */) |
| 285 | 285 |
| 286 // Asks the renderer to send back stats on the WebCore cache broken down by | 286 // Asks the renderer to send back stats on the WebCore cache broken down by |
| 287 // resource types. | 287 // resource types. |
| 288 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) | 288 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) |
| 289 | 289 |
| 290 // Tells the renderer to create a FieldTrial, and by using a 100% probability | 290 // Tells the renderer to create a FieldTrial, and by using a 100% probability |
| 291 // for the FieldTrial, forces the FieldTrial to have assigned group name. | 291 // for the FieldTrial, forces the FieldTrial to have assigned group name. |
| 292 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, | 292 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 bool /* is_incognito_processs */) | 365 bool /* is_incognito_processs */) |
| 366 | 366 |
| 367 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. | 367 // Sent in response to ViewHostMsg_DidBlockDisplayingInsecureContent. |
| 368 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, | 368 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowDisplayingInsecureContent, |
| 369 bool /* allowed */) | 369 bool /* allowed */) |
| 370 | 370 |
| 371 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. | 371 // Sent in response to ViewHostMsg_DidBlockRunningInsecureContent. |
| 372 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent, | 372 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetAllowRunningInsecureContent, |
| 373 bool /* allowed */) | 373 bool /* allowed */) |
| 374 | 374 |
| 375 IPC_MESSAGE_ROUTED0(ChromeViewMsg_ReloadFrame) |
| 376 |
| 375 // Sent when the profile changes the kSafeBrowsingEnabled preference. | 377 // Sent when the profile changes the kSafeBrowsingEnabled preference. |
| 376 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, | 378 IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetClientSidePhishingDetection, |
| 377 bool /* enable_phishing_detection */) | 379 bool /* enable_phishing_detection */) |
| 378 | 380 |
| 379 // Asks the renderer for a thumbnail of the image selected by the most | 381 // Asks the renderer for a thumbnail of the image selected by the most |
| 380 // recently opened context menu, if there is one. If the image's area | 382 // recently opened context menu, if there is one. If the image's area |
| 381 // is greater than thumbnail_min_area it will be downscaled to | 383 // is greater than thumbnail_min_area it will be downscaled to |
| 382 // be within thumbnail_max_size. The possibly downsampled image will be | 384 // be within thumbnail_max_size. The possibly downsampled image will be |
| 383 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. | 385 // returned in a ChromeViewHostMsg_RequestThumbnailForContextNode_ACK message. |
| 384 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode, | 386 IPC_MESSAGE_ROUTED2(ChromeViewMsg_RequestThumbnailForContextNode, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 427 |
| 426 // Notify the JavaScript engine in the render to change its parameters | 428 // Notify the JavaScript engine in the render to change its parameters |
| 427 // while performing stress testing. | 429 // while performing stress testing. |
| 428 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, | 430 IPC_MESSAGE_ROUTED2(ChromeViewMsg_JavaScriptStressTestControl, |
| 429 int /* cmd */, | 431 int /* cmd */, |
| 430 int /* param */) | 432 int /* param */) |
| 431 | 433 |
| 432 // Asks the renderer to send back FPS. | 434 // Asks the renderer to send back FPS. |
| 433 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) | 435 IPC_MESSAGE_ROUTED0(ChromeViewMsg_GetFPS) |
| 434 | 436 |
| 435 // Tells the view it is displaying an interstitial page. | 437 // Tells the frame it is displaying an interstitial page. |
| 436 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial) | 438 IPC_MESSAGE_ROUTED0(ChromeViewMsg_SetAsInterstitial) |
| 437 | 439 |
| 438 // Provides the renderer with the results of the browser's investigation into | 440 // Provides the renderer with the results of the browser's investigation into |
| 439 // why a recent main frame load failed (currently, just DNS probe result). | 441 // why a recent main frame load failed (currently, just DNS probe result). |
| 440 // NetErrorHelper will receive this mesage and replace or update the error | 442 // NetErrorHelper will receive this mesage and replace or update the error |
| 441 // page with more specific troubleshooting suggestions. | 443 // page with more specific troubleshooting suggestions. |
| 442 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, | 444 IPC_MESSAGE_ROUTED1(ChromeViewMsg_NetErrorInfo, |
| 443 int /* DNS probe status */) | 445 int /* DNS probe status */) |
| 444 | 446 |
| 445 //----------------------------------------------------------------------------- | 447 //----------------------------------------------------------------------------- |
| 446 // Misc messages | 448 // Misc messages |
| 447 // These are messages sent from the renderer to the browser process. | 449 // These are messages sent from the renderer to the browser process. |
| 448 | 450 |
| 449 // Notification that the language for the tab has been determined. | 451 // Notification that the language for the tab has been determined. |
| 450 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, | 452 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_TranslateLanguageDetermined, |
| 451 LanguageDetectionDetails /* details about lang detection */, | 453 LanguageDetectionDetails /* details about lang detection */, |
| 452 bool /* whether the page needs translation */) | 454 bool /* whether the page needs translation */) |
| 453 | 455 |
| 454 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, | 456 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_UpdatedCacheStats, |
| 455 blink::WebCache::UsageStats /* stats */) | 457 blink::WebCache::UsageStats /* stats */) |
| 456 | 458 |
| 457 // Tells the browser that content in the current page was blocked due to the | 459 // Tells the browser that content in the current page was blocked due to the |
| 458 // user's content settings. | 460 // user's content settings. |
| 459 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked, | 461 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_ContentBlocked, |
| 460 ContentSettingsType /* type of blocked content */) | 462 ContentSettingsType /* type of blocked content */) |
| 461 | 463 |
| 462 // Sent by the renderer process to check whether access to web databases is | 464 // Sent by the renderer process to check whether access to web databases is |
| 463 // granted by content settings. | 465 // granted by content settings. |
| 464 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, | 466 IPC_SYNC_MESSAGE_CONTROL5_1(ChromeViewHostMsg_AllowDatabase, |
| 465 int /* render_view_id */, | 467 int /* render_frame_id */, |
| 466 GURL /* origin_url */, | 468 GURL /* origin_url */, |
| 467 GURL /* top origin url */, | 469 GURL /* top origin url */, |
| 468 base::string16 /* database name */, | 470 base::string16 /* database name */, |
| 469 base::string16 /* database display name */, | 471 base::string16 /* database display name */, |
| 470 bool /* allowed */) | 472 bool /* allowed */) |
| 471 | 473 |
| 472 // Sent by the renderer process to check whether access to DOM Storage is | 474 // Sent by the renderer process to check whether access to DOM Storage is |
| 473 // granted by content settings. | 475 // granted by content settings. |
| 474 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, | 476 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowDOMStorage, |
| 475 int /* render_view_id */, | 477 int /* render_frame_id */, |
| 476 GURL /* origin_url */, | 478 GURL /* origin_url */, |
| 477 GURL /* top origin url */, | 479 GURL /* top origin url */, |
| 478 bool /* if true local storage, otherwise session */, | 480 bool /* if true local storage, otherwise session */, |
| 479 bool /* allowed */) | 481 bool /* allowed */) |
| 480 | 482 |
| 481 // Sent by the renderer process to check whether access to FileSystem is | 483 // Sent by the renderer process to check whether access to FileSystem is |
| 482 // granted by content settings. | 484 // granted by content settings. |
| 483 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, | 485 IPC_SYNC_MESSAGE_CONTROL3_1(ChromeViewHostMsg_AllowFileSystem, |
| 484 int /* render_view_id */, | 486 int /* render_frame_id */, |
| 485 GURL /* origin_url */, | 487 GURL /* origin_url */, |
| 486 GURL /* top origin url */, | 488 GURL /* top origin url */, |
| 487 bool /* allowed */) | 489 bool /* allowed */) |
| 488 | 490 |
| 489 // Sent by the renderer process to check whether access to Indexed DBis | 491 // Sent by the renderer process to check whether access to Indexed DBis |
| 490 // granted by content settings. | 492 // granted by content settings. |
| 491 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, | 493 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_AllowIndexedDB, |
| 492 int /* render_view_id */, | 494 int /* render_frame_id */, |
| 493 GURL /* origin_url */, | 495 GURL /* origin_url */, |
| 494 GURL /* top origin url */, | 496 GURL /* top origin url */, |
| 495 base::string16 /* database name */, | 497 base::string16 /* database name */, |
| 496 bool /* allowed */) | 498 bool /* allowed */) |
| 497 | 499 |
| 498 // Return information about a plugin for the given URL and MIME type. | 500 // Return information about a plugin for the given URL and MIME type. |
| 499 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 501 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
| 500 // about specific reasons why a plug-in can't be used, for example because it's | 502 // about specific reasons why a plug-in can't be used, for example because it's |
| 501 // disabled. | 503 // disabled. |
| 502 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 504 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 std::string /* the translated language */, | 633 std::string /* the translated language */, |
| 632 TranslateErrors::Type /* the error type if available */) | 634 TranslateErrors::Type /* the error type if available */) |
| 633 | 635 |
| 634 // Message sent from the renderer to the browser to notify it of a | 636 // Message sent from the renderer to the browser to notify it of a |
| 635 // window.print() call which should cancel the prerender. The message is sent | 637 // window.print() call which should cancel the prerender. The message is sent |
| 636 // only when the renderer is prerendering. | 638 // only when the renderer is prerendering. |
| 637 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) | 639 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_CancelPrerenderForPrinting) |
| 638 | 640 |
| 639 // Sent by the renderer to check if a URL has permission to trigger a clipboard | 641 // Sent by the renderer to check if a URL has permission to trigger a clipboard |
| 640 // read/write operation from the DOM. | 642 // read/write operation from the DOM. |
| 641 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardRead, | 643 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead, |
| 642 GURL /* origin */, | 644 GURL /* origin */, |
| 643 bool /* allowed */) | 645 bool /* allowed */) |
| 644 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_CanTriggerClipboardWrite, | 646 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite, |
| 645 GURL /* origin */, | 647 GURL /* origin */, |
| 646 bool /* allowed */) | 648 bool /* allowed */) |
| 647 | 649 |
| 648 // Sent by the renderer to check if a URL has permission to access WebGL | 650 // Sent by the renderer to check if a URL has permission to access WebGL |
| 649 // extension WEBGL_debug_renderer_info. | 651 // extension WEBGL_debug_renderer_info. |
| 650 IPC_SYNC_MESSAGE_ROUTED1_1(ChromeViewHostMsg_IsWebGLDebugRendererInfoAllowed, | 652 IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_IsWebGLDebugRendererInfoAllowed, |
| 651 GURL /* origin */, | 653 GURL /* origin */, |
| 652 bool /* allowed */) | 654 bool /* allowed */) |
| 653 | 655 |
| 654 // Sent when the renderer was prevented from displaying insecure content in | 656 // Sent when the renderer was prevented from displaying insecure content in |
| 655 // a secure page by a security policy. The page may appear incomplete. | 657 // a secure page by a security policy. The page may appear incomplete. |
| 656 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) | 658 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockDisplayingInsecureContent) |
| 657 | 659 |
| 658 // Sent when the renderer was prevented from running insecure content in | 660 // Sent when the renderer was prevented from running insecure content in |
| 659 // a secure origin by a security policy. The page may appear incomplete. | 661 // a secure origin by a security policy. The page may appear incomplete. |
| 660 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) | 662 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_DidBlockRunningInsecureContent) |
| 661 | 663 |
| 662 #if defined(OS_ANDROID) | 664 #if defined(OS_ANDROID) |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 std::vector<GURL> /* search_urls */, | 776 std::vector<GURL> /* search_urls */, |
| 775 GURL /* new_tab_page_url */) | 777 GURL /* new_tab_page_url */) |
| 776 | 778 |
| 777 // Tells listeners that a detailed message was reported to the console by | 779 // Tells listeners that a detailed message was reported to the console by |
| 778 // WebKit. | 780 // WebKit. |
| 779 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, | 781 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, |
| 780 base::string16 /* message */, | 782 base::string16 /* message */, |
| 781 base::string16 /* source */, | 783 base::string16 /* source */, |
| 782 extensions::StackTrace /* stack trace */, | 784 extensions::StackTrace /* stack trace */, |
| 783 int32 /* severity level */) | 785 int32 /* severity level */) |
| OLD | NEW |