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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 IPC_STRUCT_MEMBER(bool, allow_download) | 733 IPC_STRUCT_MEMBER(bool, allow_download) |
733 | 734 |
734 // Whether or not the user agent override string should be used. | 735 // Whether or not the user agent override string should be used. |
735 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) | 736 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
736 | 737 |
737 // True if this was a post request. | 738 // True if this was a post request. |
738 IPC_STRUCT_MEMBER(bool, is_post) | 739 IPC_STRUCT_MEMBER(bool, is_post) |
739 | 740 |
740 // If is_post is true, holds the post_data information from browser. Empty | 741 // If is_post is true, holds the post_data information from browser. Empty |
741 // otherwise. | 742 // otherwise. |
742 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) | 743 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
| 744 browser_initiated_post_data) |
743 | 745 |
744 // Whether or not this url should be allowed to access local file:// | 746 // Whether or not this url should be allowed to access local file:// |
745 // resources. | 747 // resources. |
746 IPC_STRUCT_MEMBER(bool, can_load_local_resources) | 748 IPC_STRUCT_MEMBER(bool, can_load_local_resources) |
747 IPC_STRUCT_END() | 749 IPC_STRUCT_END() |
748 | 750 |
749 // Parameters for an OpenURL request. | 751 // Parameters for an OpenURL request. |
750 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) | 752 IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params) |
751 IPC_STRUCT_MEMBER(GURL, url) | 753 IPC_STRUCT_MEMBER(GURL, url) |
752 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 754 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
753 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 755 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
754 IPC_STRUCT_MEMBER(int64, frame_id) | 756 IPC_STRUCT_MEMBER(int64, frame_id) |
755 IPC_STRUCT_MEMBER(bool, is_cross_site_redirect) | 757 IPC_STRUCT_MEMBER(bool, is_cross_site_redirect) |
| 758 IPC_STRUCT_MEMBER(std::string, extra_header) |
| 759 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
| 760 request_body) |
756 IPC_STRUCT_END() | 761 IPC_STRUCT_END() |
757 | 762 |
758 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 763 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
759 // Renderer-wide preferences. | 764 // Renderer-wide preferences. |
760 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 765 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
761 | 766 |
762 // Preferences for this view. | 767 // Preferences for this view. |
763 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) | 768 IPC_STRUCT_MEMBER(webkit_glue::WebPreferences, web_preferences) |
764 | 769 |
765 // The ID of the view to be created. | 770 // The ID of the view to be created. |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2405 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, | 2410 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, |
2406 GURL /* content_url */) | 2411 GURL /* content_url */) |
2407 #endif | 2412 #endif |
2408 | 2413 |
2409 // Notifies that multiple touch targets may have been pressed, and to show | 2414 // Notifies that multiple touch targets may have been pressed, and to show |
2410 // the disambiguation popup. | 2415 // the disambiguation popup. |
2411 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, | 2416 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, |
2412 gfx::Rect, /* Border of touched targets */ | 2417 gfx::Rect, /* Border of touched targets */ |
2413 gfx::Size, /* Size of zoomed image */ | 2418 gfx::Size, /* Size of zoomed image */ |
2414 TransportDIB::Id /* DIB of zoomed image */) | 2419 TransportDIB::Id /* DIB of zoomed image */) |
OLD | NEW |