| 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 // 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/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 41 #include "ui/base/dialogs/selected_file_info.h" | 41 #include "ui/base/dialogs/selected_file_info.h" |
| 42 #include "ui/base/ime/text_input_type.h" | 42 #include "ui/base/ime/text_input_type.h" |
| 43 #include "ui/base/range/range.h" | 43 #include "ui/base/range/range.h" |
| 44 #include "ui/gfx/point.h" | 44 #include "ui/gfx/point.h" |
| 45 #include "ui/gfx/rect.h" | 45 #include "ui/gfx/rect.h" |
| 46 #include "ui/gfx/rect_f.h" | 46 #include "ui/gfx/rect_f.h" |
| 47 #include "ui/gfx/vector2d.h" | 47 #include "ui/gfx/vector2d.h" |
| 48 #include "webkit/glue/resource_request_body.h" |
| 48 #include "webkit/glue/webcookie.h" | 49 #include "webkit/glue/webcookie.h" |
| 49 #include "webkit/glue/webmenuitem.h" | 50 #include "webkit/glue/webmenuitem.h" |
| 50 #include "webkit/glue/webpreferences.h" | 51 #include "webkit/glue/webpreferences.h" |
| 51 #include "webkit/plugins/npapi/webplugin.h" | 52 #include "webkit/plugins/npapi/webplugin.h" |
| 52 | 53 |
| 53 #if defined(OS_MACOSX) | 54 #if defined(OS_MACOSX) |
| 54 #include "content/common/mac/font_descriptor.h" | 55 #include "content/common/mac/font_descriptor.h" |
| 55 #endif | 56 #endif |
| 56 | 57 |
| 57 #undef IPC_MESSAGE_EXPORT | 58 #undef IPC_MESSAGE_EXPORT |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 IPC_STRUCT_MEMBER(bool, allow_download) | 730 IPC_STRUCT_MEMBER(bool, allow_download) |
| 730 | 731 |
| 731 // Whether or not the user agent override string should be used. | 732 // Whether or not the user agent override string should be used. |
| 732 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) | 733 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
| 733 | 734 |
| 734 // True if this was a post request. | 735 // True if this was a post request. |
| 735 IPC_STRUCT_MEMBER(bool, is_post) | 736 IPC_STRUCT_MEMBER(bool, is_post) |
| 736 | 737 |
| 737 // If is_post is true, holds the post_data information from browser. Empty | 738 // If is_post is true, holds the post_data information from browser. Empty |
| 738 // otherwise. | 739 // otherwise. |
| 739 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) | 740 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
| 741 browser_initiated_post_data) |
| 740 | 742 |
| 741 // Whether or not this url should be allowed to access local file:// | 743 // Whether or not this url should be allowed to access local file:// |
| 742 // resources. | 744 // resources. |
| 743 IPC_STRUCT_MEMBER(bool, can_load_local_resources) | 745 IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
| 744 IPC_STRUCT_END() | 746 IPC_STRUCT_END() |
| 745 | 747 |
| 748 // Parameters for a resource request. |
| 749 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
| 750 IPC_STRUCT_MEMBER(GURL, url) |
| 751 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
| 752 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
| 753 IPC_STRUCT_MEMBER(int64, frame_id) |
| 754 IPC_STRUCT_MEMBER(std::string, extra_header) |
| 755 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
| 756 request_body) |
| 757 IPC_STRUCT_END() |
| 758 |
| 746 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 759 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 747 // The parent window's id. | 760 // The parent window's id. |
| 748 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 761 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
| 749 | 762 |
| 750 // Renderer-wide preferences. | 763 // Renderer-wide preferences. |
| 751 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 764 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 752 | 765 |
| 753 // Preferences for this view. | 766 // Preferences for this view. |
| 754 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) | 767 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) |
| 755 | 768 |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1890 | 1903 |
| 1891 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, | 1904 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
| 1892 string16 /* in - alert message */, | 1905 string16 /* in - alert message */, |
| 1893 string16 /* in - default prompt */, | 1906 string16 /* in - default prompt */, |
| 1894 GURL /* in - originating page URL */, | 1907 GURL /* in - originating page URL */, |
| 1895 content::JavaScriptMessageType /* in - type */, | 1908 content::JavaScriptMessageType /* in - type */, |
| 1896 bool /* out - success */, | 1909 bool /* out - success */, |
| 1897 string16 /* out - user_input field */) | 1910 string16 /* out - user_input field */) |
| 1898 | 1911 |
| 1899 // Requests that the given URL be opened in the specified manner. | 1912 // Requests that the given URL be opened in the specified manner. |
| 1900 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, | 1913 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenURL, |
| 1901 GURL /* url */, | 1914 ViewHostMsg_OpenURL_Params) |
| 1902 content::Referrer /* referrer */, | |
| 1903 WindowOpenDisposition /* disposition */, | |
| 1904 int64 /* frame id */) | |
| 1905 | 1915 |
| 1906 // Notifies that the preferred size of the content changed. | 1916 // Notifies that the preferred size of the content changed. |
| 1907 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1917 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
| 1908 gfx::Size /* pref_size */) | 1918 gfx::Size /* pref_size */) |
| 1909 | 1919 |
| 1910 // Notifies that the scrollbars-visible state of the content changed. | 1920 // Notifies that the scrollbars-visible state of the content changed. |
| 1911 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, | 1921 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, |
| 1912 bool /* has_horizontal_scrollbar */, | 1922 bool /* has_horizontal_scrollbar */, |
| 1913 bool /* has_vertical_scrollbar */) | 1923 bool /* has_vertical_scrollbar */) |
| 1914 | 1924 |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, | 2415 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, |
| 2406 GURL /* content_url */) | 2416 GURL /* content_url */) |
| 2407 #endif | 2417 #endif |
| 2408 | 2418 |
| 2409 // Notifies that multiple touch targets may have been pressed, and to show | 2419 // Notifies that multiple touch targets may have been pressed, and to show |
| 2410 // the disambiguation popup. | 2420 // the disambiguation popup. |
| 2411 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 2421 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
| 2412 gfx::Rect, /* Border of touched targets */ | 2422 gfx::Rect, /* Border of touched targets */ |
| 2413 gfx::Size, /* Size of zoomed image */ | 2423 gfx::Size, /* Size of zoomed image */ |
| 2414 TransportDIB::Id /* DIB of zoomed image */) | 2424 TransportDIB::Id /* DIB of zoomed image */) |
| OLD | NEW |