| OLD | NEW |
| 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/nullable_string16.h" | 15 #include "base/nullable_string16.h" |
| 16 #include "base/platform_file.h" | 16 #include "base/platform_file.h" |
| 17 #include "base/process.h" | 17 #include "base/process.h" |
| 18 #include "base/ref_counted.h" | 18 #include "base/ref_counted.h" |
| 19 #include "base/shared_memory.h" | 19 #include "base/shared_memory.h" |
| 20 #include "base/string16.h" | 20 #include "base/string16.h" |
| 21 #include "base/sync_socket.h" | 21 #include "base/sync_socket.h" |
| 22 #include "base/values.h" | 22 #include "base/values.h" |
| 23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "chrome/common/common_param_traits.h" | |
| 25 #include "chrome/common/content_settings.h" | 24 #include "chrome/common/content_settings.h" |
| 26 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
| 27 #include "chrome/common/extensions/extension_extent.h" | 26 #include "chrome/common/extensions/extension_extent.h" |
| 28 #include "chrome/common/extensions/url_pattern.h" | 27 #include "chrome/common/extensions/url_pattern.h" |
| 29 #include "chrome/common/instant_types.h" | 28 #include "chrome/common/instant_types.h" |
| 30 #include "chrome/common/nacl_types.h" | 29 #include "chrome/common/nacl_types.h" |
| 31 #include "chrome/common/render_messages_params.h" | 30 #include "chrome/common/render_messages_params.h" |
| 32 #include "chrome/common/thumbnail_score.h" | 31 #include "chrome/common/thumbnail_score.h" |
| 33 #include "chrome/common/translate_errors.h" | 32 #include "chrome/common/translate_errors.h" |
| 34 #include "chrome/common/view_types.h" | 33 #include "chrome/common/view_types.h" |
| 35 #include "chrome/common/web_apps.h" | 34 #include "chrome/common/web_apps.h" |
| 36 #include "chrome/common/webkit_param_traits.h" | |
| 37 #include "content/common/common_param_traits.h" | 35 #include "content/common/common_param_traits.h" |
| 38 #include "content/common/css_colors.h" | 36 #include "content/common/css_colors.h" |
| 39 #include "content/common/notification_type.h" | 37 #include "content/common/notification_type.h" |
| 40 #include "content/common/page_transition_types.h" | 38 #include "content/common/page_transition_types.h" |
| 41 #include "content/common/page_zoom.h" | 39 #include "content/common/page_zoom.h" |
| 42 #include "content/common/resource_response.h" | 40 #include "content/common/resource_response.h" |
| 41 #include "chrome/common/web_apps.h" |
| 43 #include "ipc/ipc_channel_handle.h" | 42 #include "ipc/ipc_channel_handle.h" |
| 44 #include "ipc/ipc_message_macros.h" | 43 #include "ipc/ipc_message_macros.h" |
| 45 #include "ipc/ipc_message_utils.h" | 44 #include "ipc/ipc_message_utils.h" |
| 46 #include "ipc/ipc_platform_file.h" // ifdefed typedef. | 45 #include "ipc/ipc_platform_file.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult
.h" |
| 49 #include "third_party/skia/include/core/SkBitmap.h" | 51 #include "third_party/skia/include/core/SkBitmap.h" |
| 50 #include "ui/gfx/rect.h" | 52 #include "ui/gfx/rect.h" |
| 51 #include "webkit/glue/webaccessibility.h" | |
| 52 #include "webkit/glue/webcursor.h" | 53 #include "webkit/glue/webcursor.h" |
| 53 | 54 |
| 54 #if defined(OS_POSIX) | 55 #if defined(OS_POSIX) |
| 55 #include "base/file_descriptor_posix.h" | 56 #include "base/file_descriptor_posix.h" |
| 56 #endif | 57 #endif |
| 57 | 58 |
| 58 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 59 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
| 59 // more sense with our current design. | 60 // more sense with our current design. |
| 60 | 61 |
| 61 // Singly-included section, not yet converted. | 62 // Singly-included section, not yet converted. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 110 } |
| 110 | 111 |
| 111 static void Log(const param_type& p, std::string* l) { | 112 static void Log(const param_type& p, std::string* l) { |
| 112 l->append(base::StringPrintf("<gfx::NativeView>")); | 113 l->append(base::StringPrintf("<gfx::NativeView>")); |
| 113 } | 114 } |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 #endif // defined(OS_POSIX) | 117 #endif // defined(OS_POSIX) |
| 117 | 118 |
| 118 template <> | 119 template <> |
| 119 struct SimilarTypeTraits<ViewType::Type> { | 120 struct ParamTraits<ContentSettings> { |
| 120 typedef int Type; | 121 typedef ContentSettings param_type; |
| 122 static void Write(Message* m, const param_type& p); |
| 123 static bool Read(const Message* m, void** iter, param_type* r); |
| 124 static void Log(const param_type& p, std::string* l); |
| 121 }; | 125 }; |
| 122 | 126 |
| 123 // Traits for URLPattern. | |
| 124 template <> | 127 template <> |
| 125 struct ParamTraits<URLPattern> { | 128 struct ParamTraits<URLPattern> { |
| 126 typedef URLPattern param_type; | 129 typedef URLPattern param_type; |
| 127 static void Write(Message* m, const param_type& p); | 130 static void Write(Message* m, const param_type& p); |
| 128 static bool Read(const Message* m, void** iter, param_type* p); | 131 static bool Read(const Message* m, void** iter, param_type* p); |
| 129 static void Log(const param_type& p, std::string* l); | 132 static void Log(const param_type& p, std::string* l); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 template <> | 135 template <> |
| 133 struct SimilarTypeTraits<TranslateErrors::Type> { | |
| 134 typedef int Type; | |
| 135 }; | |
| 136 | |
| 137 template <> | |
| 138 struct SimilarTypeTraits<InstantCompleteBehavior> { | |
| 139 typedef int Type; | |
| 140 }; | |
| 141 | |
| 142 template <> | |
| 143 struct ParamTraits<ExtensionExtent> { | 136 struct ParamTraits<ExtensionExtent> { |
| 144 typedef ExtensionExtent param_type; | 137 typedef ExtensionExtent param_type; |
| 145 static void Write(Message* m, const param_type& p); | 138 static void Write(Message* m, const param_type& p); |
| 146 static bool Read(const Message* m, void** iter, param_type* p); | 139 static bool Read(const Message* m, void** iter, param_type* p); |
| 147 static void Log(const param_type& p, std::string* l); | 140 static void Log(const param_type& p, std::string* l); |
| 148 }; | 141 }; |
| 149 | 142 |
| 150 template <> | |
| 151 struct ParamTraits<webkit_glue::WebAccessibility> { | |
| 152 typedef webkit_glue::WebAccessibility param_type; | |
| 153 static void Write(Message* m, const param_type& p); | |
| 154 static bool Read(const Message* m, void** iter, param_type* p); | |
| 155 static void Log(const param_type& p, std::string* l); | |
| 156 }; | |
| 157 | |
| 158 } // namespace IPC | 143 } // namespace IPC |
| 159 | 144 |
| 160 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 145 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| 161 | 146 |
| 162 #define IPC_MESSAGE_START ChromeMsgStart | 147 #define IPC_MESSAGE_START ChromeMsgStart |
| 163 | 148 |
| 149 IPC_ENUM_TRAITS(ContentSetting) |
| 150 IPC_ENUM_TRAITS(ContentSettingsType) |
| 151 IPC_ENUM_TRAITS(InstantCompleteBehavior) |
| 152 IPC_ENUM_TRAITS(TranslateErrors::Type) |
| 153 IPC_ENUM_TRAITS(ViewType::Type) |
| 154 IPC_ENUM_TRAITS(WebKit::WebConsoleMessage::Level) |
| 155 IPC_ENUM_TRAITS(WebKit::WebTextCheckingResult::Error) |
| 156 |
| 157 IPC_STRUCT_TRAITS_BEGIN(ThumbnailScore) |
| 158 IPC_STRUCT_TRAITS_MEMBER(boring_score) |
| 159 IPC_STRUCT_TRAITS_MEMBER(good_clipping) |
| 160 IPC_STRUCT_TRAITS_MEMBER(at_top) |
| 161 IPC_STRUCT_TRAITS_MEMBER(time_at_snapshot) |
| 162 IPC_STRUCT_TRAITS_END() |
| 163 |
| 164 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
| 165 IPC_STRUCT_TRAITS_MEMBER(url) |
| 166 IPC_STRUCT_TRAITS_MEMBER(width) |
| 167 IPC_STRUCT_TRAITS_MEMBER(height) |
| 168 IPC_STRUCT_TRAITS_MEMBER(data) |
| 169 IPC_STRUCT_TRAITS_END() |
| 170 |
| 171 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
| 172 IPC_STRUCT_TRAITS_MEMBER(manifest_url) |
| 173 IPC_STRUCT_TRAITS_MEMBER(title) |
| 174 IPC_STRUCT_TRAITS_MEMBER(description) |
| 175 IPC_STRUCT_TRAITS_MEMBER(app_url) |
| 176 IPC_STRUCT_TRAITS_MEMBER(icons) |
| 177 IPC_STRUCT_TRAITS_MEMBER(permissions) |
| 178 IPC_STRUCT_TRAITS_MEMBER(urls) |
| 179 IPC_STRUCT_TRAITS_MEMBER(launch_container) |
| 180 IPC_STRUCT_TRAITS_END() |
| 181 |
| 182 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStat) |
| 183 IPC_STRUCT_TRAITS_MEMBER(count) |
| 184 IPC_STRUCT_TRAITS_MEMBER(size) |
| 185 IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 186 IPC_STRUCT_TRAITS_MEMBER(decodedSize) |
| 187 IPC_STRUCT_TRAITS_END() |
| 188 |
| 189 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::ResourceTypeStats) |
| 190 IPC_STRUCT_TRAITS_MEMBER(images) |
| 191 IPC_STRUCT_TRAITS_MEMBER(cssStyleSheets) |
| 192 IPC_STRUCT_TRAITS_MEMBER(scripts) |
| 193 IPC_STRUCT_TRAITS_MEMBER(xslStyleSheets) |
| 194 IPC_STRUCT_TRAITS_MEMBER(fonts) |
| 195 IPC_STRUCT_TRAITS_END() |
| 196 |
| 197 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebCache::UsageStats) |
| 198 IPC_STRUCT_TRAITS_MEMBER(minDeadCapacity) |
| 199 IPC_STRUCT_TRAITS_MEMBER(maxDeadCapacity) |
| 200 IPC_STRUCT_TRAITS_MEMBER(capacity) |
| 201 IPC_STRUCT_TRAITS_MEMBER(liveSize) |
| 202 IPC_STRUCT_TRAITS_MEMBER(deadSize) |
| 203 IPC_STRUCT_TRAITS_END() |
| 204 |
| 205 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult) |
| 206 IPC_STRUCT_TRAITS_MEMBER(error) |
| 207 IPC_STRUCT_TRAITS_MEMBER(position) |
| 208 IPC_STRUCT_TRAITS_MEMBER(length) |
| 209 IPC_STRUCT_TRAITS_END() |
| 210 |
| 164 //----------------------------------------------------------------------------- | 211 //----------------------------------------------------------------------------- |
| 165 // RenderView messages | 212 // RenderView messages |
| 166 // These are messages sent from the browser to the renderer process. | 213 // These are messages sent from the browser to the renderer process. |
| 167 | 214 |
| 168 // Tells the renderer to set its maximum cache size to the supplied value. | 215 // Tells the renderer to set its maximum cache size to the supplied value. |
| 169 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, | 216 IPC_MESSAGE_CONTROL3(ViewMsg_SetCacheCapacities, |
| 170 size_t /* min_dead_capacity */, | 217 size_t /* min_dead_capacity */, |
| 171 size_t /* max_dead_capacity */, | 218 size_t /* max_dead_capacity */, |
| 172 size_t /* capacity */) | 219 size_t /* capacity */) |
| 173 | 220 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 // Tells the renderer to revert the text of translated page to its original | 512 // Tells the renderer to revert the text of translated page to its original |
| 466 // contents. | 513 // contents. |
| 467 IPC_MESSAGE_ROUTED1(ViewMsg_RevertTranslation, | 514 IPC_MESSAGE_ROUTED1(ViewMsg_RevertTranslation, |
| 468 int /* page id */) | 515 int /* page id */) |
| 469 | 516 |
| 470 // Sent on process startup to indicate whether this process is running in | 517 // Sent on process startup to indicate whether this process is running in |
| 471 // incognito mode. | 518 // incognito mode. |
| 472 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, | 519 IPC_MESSAGE_CONTROL1(ViewMsg_SetIsIncognitoProcess, |
| 473 bool /* is_incognito_processs */) | 520 bool /* is_incognito_processs */) |
| 474 | 521 |
| 475 // Enable accessibility in the renderer process. | |
| 476 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility) | |
| 477 | |
| 478 // Relay a request from assistive technology to set focus to a given node. | |
| 479 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus, | |
| 480 int /* object id */) | |
| 481 | |
| 482 // Relay a request from assistive technology to perform the default action | |
| 483 // on a given node. | |
| 484 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, | |
| 485 int /* object id */) | |
| 486 | |
| 487 // Tells the render view that a ViewHostMsg_AccessibilityNotifications | |
| 488 // message was processed and it can send addition notifications. | |
| 489 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) | |
| 490 | |
| 491 // A classification model for client-side phishing detection. | |
| 492 // The given file contains an encoded safe_browsing::ClientSideModel | |
| 493 // protocol buffer. | |
| 494 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel, | |
| 495 IPC::PlatformFileForTransit /* model_file */) | |
| 496 | |
| 497 // Request a DOM tree when a malware interstitial is shown. | |
| 498 IPC_MESSAGE_ROUTED0(ViewMsg_GetMalwareDOMDetails) | |
| 499 | |
| 500 // Tells the renderer to begin phishing detection for the given toplevel URL | |
| 501 // which it has started loading. | |
| 502 IPC_MESSAGE_ROUTED1(ViewMsg_StartPhishingDetection, GURL) | |
| 503 | |
| 504 //----------------------------------------------------------------------------- | 522 //----------------------------------------------------------------------------- |
| 505 // TabContents messages | 523 // TabContents messages |
| 506 // These are messages sent from the renderer to the browser process. | 524 // These are messages sent from the renderer to the browser process. |
| 507 | 525 |
| 508 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, | 526 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, |
| 509 WebKit::WebCache::UsageStats /* stats */) | 527 WebKit::WebCache::UsageStats /* stats */) |
| 510 | 528 |
| 511 // Requests spellcheck for a word. | 529 // Requests spellcheck for a word. |
| 512 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, | 530 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |
| 513 string16 /* word to check */, | 531 string16 /* word to check */, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 526 int /* the tag */) | 544 int /* the tag */) |
| 527 | 545 |
| 528 // Tells the browser to display or not display the SpellingPanel | 546 // Tells the browser to display or not display the SpellingPanel |
| 529 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, | 547 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, |
| 530 bool /* if true, then show it, otherwise hide it*/) | 548 bool /* if true, then show it, otherwise hide it*/) |
| 531 | 549 |
| 532 // Tells the browser to update the spelling panel with the given word. | 550 // Tells the browser to update the spelling panel with the given word. |
| 533 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, | 551 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, |
| 534 string16 /* the word to update the panel with */) | 552 string16 /* the word to update the panel with */) |
| 535 | 553 |
| 554 // The renderer has tried to spell check a word, but couldn't because no |
| 555 // dictionary was available to load. Request that the browser find an |
| 556 // appropriate dictionary and return it. |
| 557 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) |
| 558 |
| 559 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_SpellChecker_PlatformCheckSpelling, |
| 560 string16 /* word */, |
| 561 int /* document tag */, |
| 562 bool /* correct */) |
| 563 |
| 564 IPC_SYNC_MESSAGE_CONTROL1_1( |
| 565 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
| 566 string16 /* word */, |
| 567 std::vector<string16> /* suggestions */) |
| 568 |
| 569 IPC_MESSAGE_CONTROL4(ViewHostMsg_SpellChecker_PlatformRequestTextCheck, |
| 570 int /* route_id for response */, |
| 571 int /* request identifier given by WebKit */, |
| 572 int /* document tag */, |
| 573 string16 /* sentence */) |
| 574 |
| 536 // Tells the browser that content in the current page was blocked due to the | 575 // Tells the browser that content in the current page was blocked due to the |
| 537 // user's content settings. | 576 // user's content settings. |
| 538 IPC_MESSAGE_ROUTED2(ViewHostMsg_ContentBlocked, | 577 IPC_MESSAGE_ROUTED2(ViewHostMsg_ContentBlocked, |
| 539 ContentSettingsType, /* type of blocked content */ | 578 ContentSettingsType, /* type of blocked content */ |
| 540 std::string /* resource identifier */) | 579 std::string /* resource identifier */) |
| 541 | 580 |
| 542 // Used to get the extension message bundle. | 581 // Used to get the extension message bundle. |
| 543 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, | 582 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, |
| 544 std::string /* extension id */, | 583 std::string /* extension id */, |
| 545 SubstitutionMap /* message bundle */) | 584 SubstitutionMap /* message bundle */) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 ViewHostMsg_PageHasOSDD_Type) | 633 ViewHostMsg_PageHasOSDD_Type) |
| 595 | 634 |
| 596 // Find out if the given url's security origin is installed as a search | 635 // Find out if the given url's security origin is installed as a search |
| 597 // provider. | 636 // provider. |
| 598 IPC_SYNC_MESSAGE_ROUTED2_1( | 637 IPC_SYNC_MESSAGE_ROUTED2_1( |
| 599 ViewHostMsg_GetSearchProviderInstallState, | 638 ViewHostMsg_GetSearchProviderInstallState, |
| 600 GURL /* page url */, | 639 GURL /* page url */, |
| 601 GURL /* inquiry url */, | 640 GURL /* inquiry url */, |
| 602 ViewHostMsg_GetSearchProviderInstallState_Params /* install */) | 641 ViewHostMsg_GetSearchProviderInstallState_Params /* install */) |
| 603 | 642 |
| 604 // Required for updating text input state. | |
| 605 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, | |
| 606 WebKit::WebTextInputType, /* text_input_type */ | |
| 607 gfx::Rect /* caret_rect */) | |
| 608 | |
| 609 // Required for cancelling an ongoing input method composition. | |
| 610 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | |
| 611 | |
| 612 // Tells the browser that the renderer is done calculating the number of | 643 // Tells the browser that the renderer is done calculating the number of |
| 613 // rendered pages according to the specified settings. | 644 // rendered pages according to the specified settings. |
| 614 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetPrintedPagesCount, | 645 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetPrintedPagesCount, |
| 615 int /* rendered document cookie */, | 646 int /* rendered document cookie */, |
| 616 int /* number of rendered pages */) | 647 int /* number of rendered pages */) |
| 617 | 648 |
| 618 // Sends back to the browser the rendered "printed page" that was requested by | 649 // Sends back to the browser the rendered "printed page" that was requested by |
| 619 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in | 650 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in |
| 620 // this message is already valid in the browser process. | 651 // this message is already valid in the browser process. |
| 621 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, | 652 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidPrintPage, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 634 | 665 |
| 635 // It's the renderer that controls the printing process when it is generated | 666 // It's the renderer that controls the printing process when it is generated |
| 636 // by javascript. This step is about showing UI to the user to select the | 667 // by javascript. This step is about showing UI to the user to select the |
| 637 // final print settings. The output parameter is the same as | 668 // final print settings. The output parameter is the same as |
| 638 // ViewMsg_PrintPages which is executed implicitly. | 669 // ViewMsg_PrintPages which is executed implicitly. |
| 639 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, | 670 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_ScriptedPrint, |
| 640 ViewHostMsg_ScriptedPrint_Params, | 671 ViewHostMsg_ScriptedPrint_Params, |
| 641 ViewMsg_PrintPages_Params | 672 ViewMsg_PrintPages_Params |
| 642 /* settings chosen by the user*/) | 673 /* settings chosen by the user*/) |
| 643 | 674 |
| 644 // WebKit and JavaScript error messages to log to the console | 675 #if defined(USE_X11) |
| 645 // or debugger UI. | 676 // Asks the browser to create a temporary file for the renderer to fill |
| 646 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole, | 677 // in resulting NativeMetafile in printing. |
| 647 std::wstring, /* msg */ | 678 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting, |
| 648 int32, /* line number */ | 679 base::FileDescriptor /* temp file fd */, |
| 649 std::wstring /* source id */) | 680 int /* fd in browser*/) |
| 681 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten, |
| 682 int /* fd in browser */) |
| 683 #endif |
| 684 |
| 685 // Asks the browser to do print preview for the node under the context menu. |
| 686 IPC_MESSAGE_ROUTED0(ViewHostMsg_PrintPreviewNodeUnderContextMenu) |
| 687 |
| 688 // Asks the browser to do print preview for window.print(). |
| 689 IPC_MESSAGE_ROUTED0(ViewHostMsg_ScriptInitiatedPrintPreview) |
| 650 | 690 |
| 651 // Stores new inspector setting in the profile. | 691 // Stores new inspector setting in the profile. |
| 652 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, | 692 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, |
| 653 std::string, /* key */ | 693 std::string, /* key */ |
| 654 std::string /* value */) | 694 std::string /* value */) |
| 655 | 695 |
| 656 // Wraps an IPC message that's destined to the DevToolsClient on | 696 // Wraps an IPC message that's destined to the DevToolsClient on |
| 657 // DevToolsAgent->browser hop. | 697 // DevToolsAgent->browser hop. |
| 658 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsClient, | 698 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsClient, |
| 659 IPC::Message /* one of DevToolsClientMsg_XXX types */) | 699 IPC::Message /* one of DevToolsClientMsg_XXX types */) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 | 744 |
| 705 // Request for a DNS prefetch of the names in the array. | 745 // Request for a DNS prefetch of the names in the array. |
| 706 // NameList is typedef'ed std::vector<std::string> | 746 // NameList is typedef'ed std::vector<std::string> |
| 707 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, | 747 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, |
| 708 std::vector<std::string> /* hostnames */) | 748 std::vector<std::string> /* hostnames */) |
| 709 | 749 |
| 710 // Notifies when default plugin updates status of the missing plugin. | 750 // Notifies when default plugin updates status of the missing plugin. |
| 711 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, | 751 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, |
| 712 int /* status */) | 752 int /* status */) |
| 713 | 753 |
| 714 // Sent by the renderer process to indicate that a plugin instance has | |
| 715 // crashed. | |
| 716 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, | |
| 717 FilePath /* plugin_path */) | |
| 718 | |
| 719 // Notifies when a plugin couldn't be loaded because it's outdated. | 754 // Notifies when a plugin couldn't be loaded because it's outdated. |
| 720 IPC_MESSAGE_ROUTED2(ViewHostMsg_BlockedOutdatedPlugin, | 755 IPC_MESSAGE_ROUTED2(ViewHostMsg_BlockedOutdatedPlugin, |
| 721 string16, /* name */ | 756 string16, /* name */ |
| 722 GURL /* update_url */) | 757 GURL /* update_url */) |
| 723 | 758 |
| 724 // Displays a JavaScript out-of-memory message in the infobar. | 759 // Displays a JavaScript out-of-memory message in the infobar. |
| 725 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) | 760 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) |
| 726 | 761 |
| 727 // Displays a box to confirm that the user wants to navigate away from the | |
| 728 // page. Replies true if yes, false otherwise, the reply string is ignored, | |
| 729 // but is included so that we can use OnJavaScriptMessageBoxClosed. | |
| 730 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, | |
| 731 GURL, /* in - originating frame URL */ | |
| 732 std::wstring /* in - alert message */, | |
| 733 bool /* out - success */, | |
| 734 std::wstring /* out - This is ignored.*/) | |
| 735 | |
| 736 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, | 762 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, |
| 737 std::vector<GURL> /* all savable resource links */, | 763 std::vector<GURL> /* all savable resource links */, |
| 738 std::vector<GURL> /* all referrers of resource links */, | 764 std::vector<GURL> /* all referrers of resource links */, |
| 739 std::vector<GURL> /* all frame links */) | 765 std::vector<GURL> /* all frame links */) |
| 740 | 766 |
| 741 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, | 767 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, |
| 742 GURL /* frame's url */, | 768 GURL /* frame's url */, |
| 743 std::string /* data buffer */, | 769 std::string /* data buffer */, |
| 744 int32 /* complete status */) | 770 int32 /* complete status */) |
| 745 | 771 |
| 746 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo, | 772 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidGetApplicationInfo, |
| 747 int32 /* page_id */, | 773 int32 /* page_id */, |
| 748 WebApplicationInfo) | 774 WebApplicationInfo) |
| 749 | 775 |
| 750 // Sent by the renderer to implement chrome.app.installApplication(). | 776 // Sent by the renderer to implement chrome.app.installApplication(). |
| 751 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication, | 777 IPC_MESSAGE_ROUTED1(ViewHostMsg_InstallApplication, |
| 752 WebApplicationInfo) | 778 WebApplicationInfo) |
| 753 | 779 |
| 754 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavicon, | 780 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavicon, |
| 755 int /* Identifier of the request */, | 781 int /* Identifier of the request */, |
| 756 GURL /* URL of the image */, | 782 GURL /* URL of the image */, |
| 757 bool /* true if there was a network error */, | 783 bool /* true if there was a network error */, |
| 758 SkBitmap /* image_data */) | 784 SkBitmap /* image_data */) |
| 759 | 785 |
| 760 // Sent when the renderer process is done processing a DataReceived | |
| 761 // message. | |
| 762 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, | |
| 763 int /* request_id */) | |
| 764 | |
| 765 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, | |
| 766 FilePath /* path */) | |
| 767 | |
| 768 // Sent when a provisional load on the main frame redirects. | |
| 769 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, | |
| 770 int /* page_id */, | |
| 771 GURL /* last url */, | |
| 772 GURL /* url redirected to */) | |
| 773 | |
| 774 // Sent when the renderer changes the zoom level for a particular url, so the | |
| 775 // browser can update its records. If remember is true, then url is used to | |
| 776 // update the zoom level for all pages in that site. Otherwise, the render | |
| 777 // view's id is used so that only the menu is updated. | |
| 778 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | |
| 779 double /* zoom_level */, | |
| 780 bool /* remember */, | |
| 781 GURL /* url */) | |
| 782 | |
| 783 #if defined(OS_WIN) | |
| 784 // Duplicates a shared memory handle from the renderer to the browser. Then | |
| 785 // the renderer can flush the handle. | |
| 786 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, | |
| 787 base::SharedMemoryHandle /* renderer handle */, | |
| 788 base::SharedMemoryHandle /* browser handle */) | |
| 789 #endif | |
| 790 | |
| 791 #if defined(USE_X11) | |
| 792 // Asks the browser to create a temporary file for the renderer to fill | |
| 793 // in resulting NativeMetafile in printing. | |
| 794 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_AllocateTempFileForPrinting, | |
| 795 base::FileDescriptor /* temp file fd */, | |
| 796 int /* fd in browser*/) | |
| 797 IPC_MESSAGE_CONTROL1(ViewHostMsg_TempFileForPrintingWritten, | |
| 798 int /* fd in browser */) | |
| 799 #endif | |
| 800 | |
| 801 // Asks the browser to do print preview for the node under the context menu. | |
| 802 IPC_MESSAGE_ROUTED0(ViewHostMsg_PrintPreviewNodeUnderContextMenu) | |
| 803 | |
| 804 // Asks the browser to do print preview for window.print(). | |
| 805 IPC_MESSAGE_ROUTED0(ViewHostMsg_ScriptInitiatedPrintPreview) | |
| 806 | |
| 807 // Asks the browser to create a block of shared memory for the renderer to | |
| 808 // fill in and pass back to the browser. | |
| 809 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, | |
| 810 uint32 /* buffer size */, | |
| 811 base::SharedMemoryHandle /* browser handle */) | |
| 812 | |
| 813 // Provide the browser process with information about the WebCore resource | 786 // Provide the browser process with information about the WebCore resource |
| 814 // cache. | 787 // cache. |
| 815 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, | 788 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, |
| 816 WebKit::WebCache::ResourceTypeStats) | 789 WebKit::WebCache::ResourceTypeStats) |
| 817 | 790 |
| 818 // Notify the browser that this render process can or can't be suddenly | |
| 819 // terminated. | |
| 820 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | |
| 821 bool /* enabled */) | |
| 822 | |
| 823 // A renderer sends this message when an extension process starts an API | 791 // A renderer sends this message when an extension process starts an API |
| 824 // request. The browser will always respond with a ViewMsg_ExtensionResponse. | 792 // request. The browser will always respond with a ViewMsg_ExtensionResponse. |
| 825 IPC_MESSAGE_ROUTED1(ViewHostMsg_ExtensionRequest, | 793 IPC_MESSAGE_ROUTED1(ViewHostMsg_ExtensionRequest, |
| 826 ViewHostMsg_DomMessage_Params) | 794 ViewHostMsg_DomMessage_Params) |
| 827 | 795 |
| 828 // Notify the browser that the given extension added a listener to an event. | 796 // Notify the browser that the given extension added a listener to an event. |
| 829 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionAddListener, | 797 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionAddListener, |
| 830 std::string /* extension_id */, | 798 std::string /* extension_id */, |
| 831 std::string /* name */) | 799 std::string /* name */) |
| 832 | 800 |
| 833 // Notify the browser that the given extension removed a listener from an | 801 // Notify the browser that the given extension removed a listener from an |
| 834 // event. | 802 // event. |
| 835 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionRemoveListener, | 803 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionRemoveListener, |
| 836 std::string /* extension_id */, | 804 std::string /* extension_id */, |
| 837 std::string /* name */) | 805 std::string /* name */) |
| 838 | 806 |
| 839 // Message sent from renderer to the browser to update the state of a command. | 807 // Message sent from renderer to the browser to update the state of a command. |
| 840 // The |command| parameter is a RenderViewCommand. The |checked_state| parameter | 808 // The |command| parameter is a RenderViewCommand. The |checked_state| parameter |
| 841 // is a CommandCheckedState. | 809 // is a CommandCheckedState. |
| 842 IPC_MESSAGE_ROUTED3(ViewHostMsg_CommandStateChanged, | 810 IPC_MESSAGE_ROUTED3(ViewHostMsg_CommandStateChanged, |
| 843 int /* command */, | 811 int /* command */, |
| 844 bool /* is_enabled */, | 812 bool /* is_enabled */, |
| 845 int /* checked_state */) | 813 int /* checked_state */) |
| 846 | 814 |
| 847 #if defined(OS_MACOSX) | |
| 848 // On OSX, we cannot allocated shared memory from within the sandbox, so | |
| 849 // this call exists for the renderer to ask the browser to allocate memory | |
| 850 // on its behalf. We return a file descriptor to the POSIX shared memory. | |
| 851 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept | |
| 852 // by the browser, and it is the caller's repsonsibility to send a | |
| 853 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. | |
| 854 // In all cases, the caller is responsible for deleting the resulting | |
| 855 // TransportDIB. | |
| 856 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, | |
| 857 size_t, /* bytes requested */ | |
| 858 bool, /* cache in the browser */ | |
| 859 TransportDIB::Handle /* DIB */) | |
| 860 | |
| 861 // Since the browser keeps handles to the allocated transport DIBs, this | |
| 862 // message is sent to tell the browser that it may release them when the | |
| 863 // renderer is finished with them. | |
| 864 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | |
| 865 TransportDIB::Id /* DIB id */) | |
| 866 | |
| 867 // Informs the browser that a plugin has gained or lost focus. | |
| 868 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | |
| 869 bool, /* focused */ | |
| 870 int /* plugin_id */) | |
| 871 | |
| 872 // Instructs the browser to start plugin IME. | |
| 873 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | |
| 874 | |
| 875 //--------------------------------------------------------------------------- | |
| 876 // Messages related to accelerated plugins | |
| 877 | |
| 878 // This is sent from the renderer to the browser to allocate a fake | |
| 879 // PluginWindowHandle on the browser side which is used to identify | |
| 880 // the plugin to the browser later when backing store is allocated | |
| 881 // or reallocated. |opaque| indicates whether the plugin's output is | |
| 882 // considered to be opaque, as opposed to translucent. This message | |
| 883 // is reused for rendering the accelerated compositor's output. | |
| 884 // |root| indicates whether the output is supposed to cover the | |
| 885 // entire window. | |
| 886 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_AllocateFakePluginWindowHandle, | |
| 887 bool /* opaque */, | |
| 888 bool /* root */, | |
| 889 gfx::PluginWindowHandle /* id */) | |
| 890 | |
| 891 // Destroys a fake window handle previously allocated using | |
| 892 // AllocateFakePluginWindowHandle. | |
| 893 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyFakePluginWindowHandle, | |
| 894 gfx::PluginWindowHandle /* id */) | |
| 895 | |
| 896 // This message, used on Mac OS X 10.5 and earlier (no IOSurface support), | |
| 897 // is sent from the renderer to the browser on behalf of the plug-in | |
| 898 // to indicate that a new backing store was allocated for that plug-in | |
| 899 // instance. | |
| 900 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetTransportDIB, | |
| 901 gfx::PluginWindowHandle /* window */, | |
| 902 int32 /* width */, | |
| 903 int32 /* height */, | |
| 904 TransportDIB::Handle /* handle for the DIB */) | |
| 905 | |
| 906 // This message, used on Mac OS X 10.6 and later (where IOSurface is | |
| 907 // supported), is sent from the renderer to the browser on behalf of the | |
| 908 // plug-in to indicate that a new backing store was allocated for that | |
| 909 // plug-in instance. | |
| 910 // | |
| 911 // NOTE: the original intent was to pass a mach port as the IOSurface | |
| 912 // identifier but it looks like that will be a lot of work. For now we pass an | |
| 913 // ID from IOSurfaceGetID. | |
| 914 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface, | |
| 915 gfx::PluginWindowHandle /* window */, | |
| 916 int32 /* width */, | |
| 917 int32 /* height */, | |
| 918 uint64 /* surface_id */) | |
| 919 | |
| 920 // This message notifies the browser process that the plug-in | |
| 921 // swapped the buffers associated with the given "window", which | |
| 922 // should cause the browser to redraw the various plug-ins' | |
| 923 // contents. | |
| 924 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, | |
| 925 gfx::PluginWindowHandle /* window */, | |
| 926 uint64 /* surface_id */) | |
| 927 #endif | |
| 928 | |
| 929 // Open a channel to all listening contexts owned by the extension with | 815 // Open a channel to all listening contexts owned by the extension with |
| 930 // the given ID. This always returns a valid port ID which can be used for | 816 // the given ID. This always returns a valid port ID which can be used for |
| 931 // sending messages. If an error occurred, the opener will be notified | 817 // sending messages. If an error occurred, the opener will be notified |
| 932 // asynchronously. | 818 // asynchronously. |
| 933 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension, | 819 IPC_SYNC_MESSAGE_CONTROL4_1(ViewHostMsg_OpenChannelToExtension, |
| 934 int /* routing_id */, | 820 int /* routing_id */, |
| 935 std::string /* source_extension_id */, | 821 std::string /* source_extension_id */, |
| 936 std::string /* target_extension_id */, | 822 std::string /* target_extension_id */, |
| 937 std::string /* channel_name */, | 823 std::string /* channel_name */, |
| 938 int /* port_id */) | 824 int /* port_id */) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 950 // by ViewHostMsg_OpenChannelTo*. | 836 // by ViewHostMsg_OpenChannelTo*. |
| 951 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage, | 837 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExtensionPostMessage, |
| 952 int /* port_id */, | 838 int /* port_id */, |
| 953 std::string /* message */) | 839 std::string /* message */) |
| 954 | 840 |
| 955 // Send a message to an extension process. The handle is the value returned | 841 // Send a message to an extension process. The handle is the value returned |
| 956 // by ViewHostMsg_OpenChannelTo*. | 842 // by ViewHostMsg_OpenChannelTo*. |
| 957 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionCloseChannel, | 843 IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionCloseChannel, |
| 958 int /* port_id */) | 844 int /* port_id */) |
| 959 | 845 |
| 960 // Sent to notify the browser about renderer accessibility notifications. | |
| 961 // The browser responds with a ViewMsg_AccessibilityNotifications_ACK. | |
| 962 IPC_MESSAGE_ROUTED1( | |
| 963 ViewHostMsg_AccessibilityNotifications, | |
| 964 std::vector<ViewHostMsg_AccessibilityNotification_Params>) | |
| 965 | |
| 966 // Send part of the DOM to the browser, to be used in a malware report. | |
| 967 IPC_MESSAGE_ROUTED1(ViewHostMsg_MalwareDOMDetails, | |
| 968 ViewHostMsg_MalwareDOMDetails_Params) | |
| 969 | |
| 970 // Message sent from the renderer to the browser to request that the browser | 846 // Message sent from the renderer to the browser to request that the browser |
| 971 // close all sockets. Used for debugging/testing. | 847 // close all sockets. Used for debugging/testing. |
| 972 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections) | 848 IPC_MESSAGE_CONTROL0(ViewHostMsg_CloseCurrentConnections) |
| 973 | 849 |
| 974 // Message sent from the renderer to the browser to request that the browser | 850 // Message sent from the renderer to the browser to request that the browser |
| 975 // enable or disable the cache. Used for debugging/testing. | 851 // enable or disable the cache. Used for debugging/testing. |
| 976 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, | 852 IPC_MESSAGE_CONTROL1(ViewHostMsg_SetCacheMode, |
| 977 bool /* enabled */) | 853 bool /* enabled */) |
| 978 | 854 |
| 979 // Message sent from the renderer to the browser to request that the browser | 855 // Message sent from the renderer to the browser to request that the browser |
| (...skipping 10 matching lines...) Expand all Loading... |
| 990 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, | 866 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, |
| 991 bool /* enable */) | 867 bool /* enable */) |
| 992 | 868 |
| 993 // Message sent from the renderer to the browser to request that the browser | 869 // Message sent from the renderer to the browser to request that the browser |
| 994 // cache |data| associated with |url|. | 870 // cache |data| associated with |url|. |
| 995 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, | 871 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, |
| 996 GURL /* url */, | 872 GURL /* url */, |
| 997 double /* expected_response_time */, | 873 double /* expected_response_time */, |
| 998 std::vector<char> /* data */) | 874 std::vector<char> /* data */) |
| 999 | 875 |
| 1000 // Opens a file asynchronously. The response returns a file descriptor | |
| 1001 // and an error code from base/platform_file.h. | |
| 1002 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, | |
| 1003 FilePath /* file path */, | |
| 1004 int /* flags */, | |
| 1005 int /* message_id */) | |
| 1006 | |
| 1007 // Sent by the renderer process to acknowledge receipt of a | 876 // Sent by the renderer process to acknowledge receipt of a |
| 1008 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. | 877 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. |
| 1009 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) | 878 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) |
| 1010 | 879 |
| 1011 // Notifies the browser of the language (ISO 639_1 code language, such as fr, | 880 // Notifies the browser of the language (ISO 639_1 code language, such as fr, |
| 1012 // en, zh...) of the current page. | 881 // en, zh...) of the current page. |
| 1013 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, | 882 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageLanguageDetermined, |
| 1014 std::string /* the language */) | 883 std::string /* the language */) |
| 1015 | 884 |
| 1016 // Notifies the browser that a page has been translated. | 885 // Notifies the browser that a page has been translated. |
| 1017 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, | 886 IPC_MESSAGE_ROUTED4(ViewHostMsg_PageTranslated, |
| 1018 int, /* page id */ | 887 int, /* page id */ |
| 1019 std::string /* the original language */, | 888 std::string /* the original language */, |
| 1020 std::string /* the translated language */, | 889 std::string /* the translated language */, |
| 1021 TranslateErrors::Type /* the error type if available */) | 890 TranslateErrors::Type /* the error type if available */) |
| 1022 | 891 |
| 1023 //--------------------------------------------------------------------------- | |
| 1024 // Request for cryptographic operation messages: | |
| 1025 // These are messages from the renderer to the browser to perform a | |
| 1026 // cryptographic operation. | |
| 1027 | |
| 1028 // Asks the browser process to generate a keypair for grabbing a client | |
| 1029 // certificate from a CA (<keygen> tag), and returns the signed public | |
| 1030 // key and challenge string. | |
| 1031 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, | |
| 1032 uint32 /* key size index */, | |
| 1033 std::string /* challenge string */, | |
| 1034 GURL /* URL of requestor */, | |
| 1035 std::string /* signed public key and challenge */) | |
| 1036 | |
| 1037 // The renderer has tried to spell check a word, but couldn't because no | |
| 1038 // dictionary was available to load. Request that the browser find an | |
| 1039 // appropriate dictionary and return it. | |
| 1040 IPC_MESSAGE_CONTROL0(ViewHostMsg_SpellChecker_RequestDictionary) | |
| 1041 | |
| 1042 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_SpellChecker_PlatformCheckSpelling, | |
| 1043 string16 /* word */, | |
| 1044 int /* document tag */, | |
| 1045 bool /* correct */) | |
| 1046 | |
| 1047 IPC_SYNC_MESSAGE_CONTROL1_1( | |
| 1048 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | |
| 1049 string16 /* word */, | |
| 1050 std::vector<string16> /* suggestions */) | |
| 1051 | |
| 1052 IPC_MESSAGE_CONTROL4(ViewHostMsg_SpellChecker_PlatformRequestTextCheck, | |
| 1053 int /* route_id for response */, | |
| 1054 int /* request identifier given by WebKit */, | |
| 1055 int /* document tag */, | |
| 1056 string16 /* sentence */) | |
| 1057 | |
| 1058 // Updates the minimum/maximum allowed zoom percent for this tab from the | |
| 1059 // default values. If |remember| is true, then the zoom setting is applied to | |
| 1060 // other pages in the site and is saved, otherwise it only applies to this | |
| 1061 // tab. | |
| 1062 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | |
| 1063 int /* minimum_percent */, | |
| 1064 int /* maximum_percent */, | |
| 1065 bool /* remember */) | |
| 1066 | |
| 1067 // Suggest results ----------------------------------------------------------- | 892 // Suggest results ----------------------------------------------------------- |
| 1068 | 893 |
| 1069 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, | 894 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, |
| 1070 int32 /* page_id */, | 895 int32 /* page_id */, |
| 1071 std::vector<std::string> /* suggestions */, | 896 std::vector<std::string> /* suggestions */, |
| 1072 InstantCompleteBehavior) | 897 InstantCompleteBehavior) |
| 1073 | 898 |
| 1074 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, | 899 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, |
| 1075 int32 /* page_id */, | 900 int32 /* page_id */, |
| 1076 bool /* result */) | 901 bool /* result */) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1093 // Register a new handler for URL requests with the given scheme. | 918 // Register a new handler for URL requests with the given scheme. |
| 1094 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 919 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
| 1095 std::string /* scheme */, | 920 std::string /* scheme */, |
| 1096 GURL /* url */, | 921 GURL /* url */, |
| 1097 string16 /* title */) | 922 string16 /* title */) |
| 1098 | 923 |
| 1099 // Send from the renderer to the browser to return the script running result. | 924 // Send from the renderer to the browser to return the script running result. |
| 1100 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExecuteCodeFinished, | 925 IPC_MESSAGE_ROUTED2(ViewHostMsg_ExecuteCodeFinished, |
| 1101 int, /* request id */ | 926 int, /* request id */ |
| 1102 bool /* whether the script ran successfully */) | 927 bool /* whether the script ran successfully */) |
| OLD | NEW |