Chromium Code Reviews| 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(ViewMsg_PostRequest_Params) | |
| 750 IPC_STRUCT_MEMBER(std::string, extra_header) | |
| 751 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, | |
| 752 request_body) | |
| 753 IPC_STRUCT_END() | |
| 754 | |
| 746 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 755 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 747 // The parent window's id. | 756 // The parent window's id. |
| 748 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 757 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
| 749 | 758 |
| 750 // Renderer-wide preferences. | 759 // Renderer-wide preferences. |
| 751 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 760 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
| 752 | 761 |
| 753 // Preferences for this view. | 762 // Preferences for this view. |
| 754 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) | 763 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) |
| 755 | 764 |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1888 bool /* out - success */, | 1897 bool /* out - success */, |
| 1889 string16 /* out - user_input field */) | 1898 string16 /* out - user_input field */) |
| 1890 | 1899 |
| 1891 // Requests that the given URL be opened in the specified manner. | 1900 // Requests that the given URL be opened in the specified manner. |
| 1892 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, | 1901 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, |
| 1893 GURL /* url */, | 1902 GURL /* url */, |
| 1894 content::Referrer /* referrer */, | 1903 content::Referrer /* referrer */, |
| 1895 WindowOpenDisposition /* disposition */, | 1904 WindowOpenDisposition /* disposition */, |
| 1896 int64 /* frame id */) | 1905 int64 /* frame id */) |
| 1897 | 1906 |
| 1907 // Requests that the given URL be opened in the specified manner. | |
| 1908 IPC_MESSAGE_ROUTED5(ViewHostMsg_OpenPostURL, | |
|
michaeln
2012/11/05 23:38:29
Instead of defining a new message that lives in pa
irobert
2012/11/06 05:39:20
Done.
| |
| 1909 GURL /* url */, | |
| 1910 content::Referrer /* referrer */, | |
| 1911 WindowOpenDisposition /* disposition */, | |
| 1912 int64 /* frame id */, | |
| 1913 ViewMsg_PostRequest_Params /* request */) | |
| 1914 | |
| 1898 // Notifies that the preferred size of the content changed. | 1915 // Notifies that the preferred size of the content changed. |
| 1899 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1916 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
| 1900 gfx::Size /* pref_size */) | 1917 gfx::Size /* pref_size */) |
| 1901 | 1918 |
| 1902 // Notifies that the scrollbars-visible state of the content changed. | 1919 // Notifies that the scrollbars-visible state of the content changed. |
| 1903 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, | 1920 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, |
| 1904 bool /* has_horizontal_scrollbar */, | 1921 bool /* has_horizontal_scrollbar */, |
| 1905 bool /* has_vertical_scrollbar */) | 1922 bool /* has_vertical_scrollbar */) |
| 1906 | 1923 |
| 1907 // Notifies that the pinned-to-side state of the content changed. | 1924 // Notifies that the pinned-to-side state of the content changed. |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2397 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, | 2414 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, |
| 2398 GURL /* content_url */) | 2415 GURL /* content_url */) |
| 2399 #endif | 2416 #endif |
| 2400 | 2417 |
| 2401 // Notifies that multiple touch targets may have been pressed, and to show | 2418 // Notifies that multiple touch targets may have been pressed, and to show |
| 2402 // the disambiguation popup. | 2419 // the disambiguation popup. |
| 2403 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 2420 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
| 2404 gfx::Rect, /* Border of touched targets */ | 2421 gfx::Rect, /* Border of touched targets */ |
| 2405 gfx::Size, /* Size of zoomed image */ | 2422 gfx::Size, /* Size of zoomed image */ |
| 2406 TransportDIB::Id /* DIB of zoomed image */) | 2423 TransportDIB::Id /* DIB of zoomed image */) |
| OLD | NEW |