Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: content/common/view_messages.h

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileRead Permission Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 IPC_ENUM_TRAITS(WebMenuItem::Type) 71 IPC_ENUM_TRAITS(WebMenuItem::Type)
72 IPC_ENUM_TRAITS(WindowContainerType) 72 IPC_ENUM_TRAITS(WindowContainerType)
73 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 73 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
74 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 74 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
75 IPC_ENUM_TRAITS(content::PageZoom) 75 IPC_ENUM_TRAITS(content::PageZoom)
76 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 76 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
77 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 77 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
78 IPC_ENUM_TRAITS(content::StopFindAction) 78 IPC_ENUM_TRAITS(content::StopFindAction)
79 IPC_ENUM_TRAITS(media::ChannelLayout) 79 IPC_ENUM_TRAITS(media::ChannelLayout)
80 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 80 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
81 IPC_ENUM_TRAITS(content::WebHTTPPOSTBodyParams::Type)
81 IPC_ENUM_TRAITS(ui::TextInputType) 82 IPC_ENUM_TRAITS(ui::TextInputType)
82 83
83 IPC_STRUCT_TRAITS_BEGIN(EditCommand) 84 IPC_STRUCT_TRAITS_BEGIN(EditCommand)
84 IPC_STRUCT_TRAITS_MEMBER(name) 85 IPC_STRUCT_TRAITS_MEMBER(name)
85 IPC_STRUCT_TRAITS_MEMBER(value) 86 IPC_STRUCT_TRAITS_MEMBER(value)
86 IPC_STRUCT_TRAITS_END() 87 IPC_STRUCT_TRAITS_END()
87 88
88 #if defined(OS_MACOSX) 89 #if defined(OS_MACOSX)
89 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 90 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
90 IPC_STRUCT_TRAITS_MEMBER(font_name) 91 IPC_STRUCT_TRAITS_MEMBER(font_name)
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 IPC_STRUCT_TRAITS_MEMBER(transition) 303 IPC_STRUCT_TRAITS_MEMBER(transition)
303 IPC_STRUCT_TRAITS_MEMBER(redirects) 304 IPC_STRUCT_TRAITS_MEMBER(redirects)
304 IPC_STRUCT_TRAITS_MEMBER(should_update_history) 305 IPC_STRUCT_TRAITS_MEMBER(should_update_history)
305 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 306 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
306 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 307 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
307 IPC_STRUCT_TRAITS_MEMBER(password_form) 308 IPC_STRUCT_TRAITS_MEMBER(password_form)
308 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) 309 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
309 IPC_STRUCT_TRAITS_MEMBER(socket_address) 310 IPC_STRUCT_TRAITS_MEMBER(socket_address)
310 IPC_STRUCT_TRAITS_END() 311 IPC_STRUCT_TRAITS_END()
311 312
313
314 IPC_STRUCT_TRAITS_BEGIN(content::WebHTTPPOSTBodyParams)
315 // HTTP Body Info
316 IPC_STRUCT_TRAITS_MEMBER(method)
317 IPC_STRUCT_TRAITS_MEMBER(type)
318 IPC_STRUCT_TRAITS_MEMBER(data)
319 IPC_STRUCT_TRAITS_MEMBER(filePath)
320 IPC_STRUCT_TRAITS_MEMBER(fileStart)
321 IPC_STRUCT_TRAITS_MEMBER(fileLength)
322 IPC_STRUCT_TRAITS_MEMBER(modificationTime)
323 // HTTP Header Info, will Move to new struct
324 IPC_STRUCT_TRAITS_MEMBER(ContentType)
325 IPC_STRUCT_TRAITS_END()
326
312 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) 327 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
313 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) 328 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
314 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) 329 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
315 IPC_STRUCT_TRAITS_MEMBER(hinting) 330 IPC_STRUCT_TRAITS_MEMBER(hinting)
316 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) 331 IPC_STRUCT_TRAITS_MEMBER(use_autohinter)
317 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) 332 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps)
318 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) 333 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering)
319 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) 334 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning)
320 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) 335 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color)
321 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) 336 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color)
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // True if this was a post request. 750 // True if this was a post request.
736 IPC_STRUCT_MEMBER(bool, is_post) 751 IPC_STRUCT_MEMBER(bool, is_post)
737 752
738 // If is_post is true, holds the post_data information from browser. Empty 753 // If is_post is true, holds the post_data information from browser. Empty
739 // otherwise. 754 // otherwise.
740 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data) 755 IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
741 756
742 // Whether or not this url should be allowed to access local file:// 757 // Whether or not this url should be allowed to access local file://
743 // resources. 758 // resources.
744 IPC_STRUCT_MEMBER(bool, can_load_local_resources) 759 IPC_STRUCT_MEMBER(bool, can_load_local_resources)
760
761 IPC_STRUCT_MEMBER(std::vector<content::WebHTTPPOSTBodyParams>, post_data)
745 IPC_STRUCT_END() 762 IPC_STRUCT_END()
746 763
747 IPC_STRUCT_BEGIN(ViewMsg_New_Params) 764 IPC_STRUCT_BEGIN(ViewMsg_New_Params)
748 // The parent window's id. 765 // The parent window's id.
749 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) 766 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window)
750 767
751 // Renderer-wide preferences. 768 // Renderer-wide preferences.
752 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) 769 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences)
753 770
754 // Preferences for this view. 771 // Preferences for this view.
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 bool /* out - success */, 1911 bool /* out - success */,
1895 string16 /* out - user_input field */) 1912 string16 /* out - user_input field */)
1896 1913
1897 // Requests that the given URL be opened in the specified manner. 1914 // Requests that the given URL be opened in the specified manner.
1898 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL, 1915 IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL,
1899 GURL /* url */, 1916 GURL /* url */,
1900 content::Referrer /* referrer */, 1917 content::Referrer /* referrer */,
1901 WindowOpenDisposition /* disposition */, 1918 WindowOpenDisposition /* disposition */,
1902 int64 /* frame id */) 1919 int64 /* frame id */)
1903 1920
1921 // Requests that the given URL be opened in the specified manner.
1922 IPC_MESSAGE_ROUTED5(ViewHostMsg_OpenPostURL,
1923 GURL /* url */,
1924 content::Referrer /* referrer */,
1925 WindowOpenDisposition /* disposition */,
1926 int64 /* frame id */,
1927 std::vector<content::WebHTTPPOSTBodyParams>)
1928
1904 // Notifies that the preferred size of the content changed. 1929 // Notifies that the preferred size of the content changed.
1905 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, 1930 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
1906 gfx::Size /* pref_size */) 1931 gfx::Size /* pref_size */)
1907 1932
1908 // Notifies that the scrollbars-visible state of the content changed. 1933 // Notifies that the scrollbars-visible state of the content changed.
1909 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, 1934 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame,
1910 bool /* has_horizontal_scrollbar */, 1935 bool /* has_horizontal_scrollbar */,
1911 bool /* has_vertical_scrollbar */) 1936 bool /* has_vertical_scrollbar */)
1912 1937
1913 // Notifies that the pinned-to-side state of the content changed. 1938 // Notifies that the pinned-to-side state of the content changed.
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, 2428 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
2404 GURL /* content_url */) 2429 GURL /* content_url */)
2405 #endif 2430 #endif
2406 2431
2407 // Notifies that multiple touch targets may have been pressed, and to show 2432 // Notifies that multiple touch targets may have been pressed, and to show
2408 // the disambiguation popup. 2433 // the disambiguation popup.
2409 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup, 2434 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
2410 gfx::Rect, /* Border of touched targets */ 2435 gfx::Rect, /* Border of touched targets */
2411 gfx::Size, /* Size of zoomed image */ 2436 gfx::Size, /* Size of zoomed image */
2412 TransportDIB::Id /* DIB of zoomed image */) 2437 TransportDIB::Id /* DIB of zoomed image */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698