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

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

Issue 1002803002: Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better crash url Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/frame_replication_state.h" 12 #include "content/common/frame_replication_state.h"
13 #include "content/common/navigation_gesture.h" 13 #include "content/common/navigation_gesture.h"
14 #include "content/common/navigation_params.h" 14 #include "content/common/navigation_params.h"
15 #include "content/common/resource_request_body.h" 15 #include "content/common/resource_request_body.h"
16 #include "content/public/common/color_suggestion.h" 16 #include "content/public/common/color_suggestion.h"
17 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
18 #include "content/public/common/context_menu_params.h" 18 #include "content/public/common/context_menu_params.h"
19 #include "content/public/common/frame_navigate_params.h" 19 #include "content/public/common/frame_navigate_params.h"
20 #include "content/public/common/javascript_message_type.h" 20 #include "content/public/common/javascript_message_type.h"
21 #include "content/public/common/page_state.h" 21 #include "content/public/common/page_state.h"
22 #include "content/public/common/resource_response.h" 22 #include "content/public/common/resource_response.h"
23 #include "content/public/common/transition_element.h" 23 #include "content/public/common/transition_element.h"
24 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
25 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
25 #include "ui/gfx/ipc/gfx_param_traits.h" 26 #include "ui/gfx/ipc/gfx_param_traits.h"
26 #include "url/gurl.h" 27 #include "url/gurl.h"
27 #include "url/origin.h" 28 #include "url/origin.h"
28 29
29 #undef IPC_MESSAGE_EXPORT 30 #undef IPC_MESSAGE_EXPORT
30 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 31 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
31 32
32 #define IPC_MESSAGE_START FrameMsgStart 33 #define IPC_MESSAGE_START FrameMsgStart
33 34
34 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, 35 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode,
35 AccessibilityModeOff, 36 AccessibilityModeOff,
36 AccessibilityModeComplete) 37 AccessibilityModeComplete)
37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, 38 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType,
38 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, 39 content::JAVASCRIPT_MESSAGE_TYPE_ALERT,
39 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) 40 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT)
41 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebHistoryCommitType,
42 blink::WebStandardCommit,
43 blink::WebHistoryInertCommit)
40 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, 44 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value,
41 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) 45 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST)
42 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, 46 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value,
43 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) 47 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST)
44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, 48 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType,
45 blink::WebContextMenuData::MediaTypeLast) 49 blink::WebContextMenuData::MediaTypeLast)
46 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) 50 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST)
47 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask. 51 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask.
48 52
49 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) 53 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 IPC_STRUCT_MEMBER(base::string16, error_description) 119 IPC_STRUCT_MEMBER(base::string16, error_description)
116 // The URL that the error is reported for. 120 // The URL that the error is reported for.
117 IPC_STRUCT_MEMBER(GURL, url) 121 IPC_STRUCT_MEMBER(GURL, url)
118 // True if the failure is the result of navigating to a POST again 122 // True if the failure is the result of navigating to a POST again
119 // and we're going to show the POST interstitial. 123 // and we're going to show the POST interstitial.
120 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) 124 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
121 IPC_STRUCT_END() 125 IPC_STRUCT_END()
122 126
123 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) 127 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
124 IPC_STRUCT_TRAITS_MEMBER(page_id) 128 IPC_STRUCT_TRAITS_MEMBER(page_id)
129 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
125 IPC_STRUCT_TRAITS_MEMBER(url) 130 IPC_STRUCT_TRAITS_MEMBER(url)
126 IPC_STRUCT_TRAITS_MEMBER(base_url) 131 IPC_STRUCT_TRAITS_MEMBER(base_url)
127 IPC_STRUCT_TRAITS_MEMBER(referrer) 132 IPC_STRUCT_TRAITS_MEMBER(referrer)
128 IPC_STRUCT_TRAITS_MEMBER(transition) 133 IPC_STRUCT_TRAITS_MEMBER(transition)
129 IPC_STRUCT_TRAITS_MEMBER(redirects) 134 IPC_STRUCT_TRAITS_MEMBER(redirects)
130 IPC_STRUCT_TRAITS_MEMBER(should_update_history) 135 IPC_STRUCT_TRAITS_MEMBER(should_update_history)
131 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 136 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
132 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 137 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
133 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) 138 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
134 IPC_STRUCT_TRAITS_MEMBER(socket_address) 139 IPC_STRUCT_TRAITS_MEMBER(socket_address)
135 IPC_STRUCT_TRAITS_END() 140 IPC_STRUCT_TRAITS_END()
136 141
137 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has 142 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has
138 // too many data parameters to be reasonably put in a predefined IPC message. 143 // too many data parameters to be reasonably put in a predefined IPC message.
139 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params, 144 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params,
140 content::FrameNavigateParams) 145 content::FrameNavigateParams)
141 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams) 146 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams)
142 147
148 // The type of commit. TODO(avi): Does this need to go in FrameNavigateParams,
149 // instead?
150 IPC_STRUCT_MEMBER(blink::WebHistoryCommitType, commit_type)
151
143 // Information regarding the security of the connection (empty if the 152 // Information regarding the security of the connection (empty if the
144 // connection was not secure). 153 // connection was not secure).
145 IPC_STRUCT_MEMBER(std::string, security_info) 154 IPC_STRUCT_MEMBER(std::string, security_info)
146 155
147 // The gesture that initiated this navigation. 156 // The gesture that initiated this navigation.
148 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture) 157 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture)
149 158
150 // True if this was a post request. 159 // True if this was a post request.
151 IPC_STRUCT_MEMBER(bool, is_post) 160 IPC_STRUCT_MEMBER(bool, is_post)
152 161
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) 237 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start)
229 IPC_STRUCT_TRAITS_MEMBER(redirects) 238 IPC_STRUCT_TRAITS_MEMBER(redirects)
230 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources) 239 IPC_STRUCT_TRAITS_MEMBER(can_load_local_resources)
231 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate) 240 IPC_STRUCT_TRAITS_MEMBER(frame_to_navigate)
232 IPC_STRUCT_TRAITS_MEMBER(request_time) 241 IPC_STRUCT_TRAITS_MEMBER(request_time)
233 IPC_STRUCT_TRAITS_END() 242 IPC_STRUCT_TRAITS_END()
234 243
235 IPC_STRUCT_TRAITS_BEGIN(content::HistoryNavigationParams) 244 IPC_STRUCT_TRAITS_BEGIN(content::HistoryNavigationParams)
236 IPC_STRUCT_TRAITS_MEMBER(page_state) 245 IPC_STRUCT_TRAITS_MEMBER(page_state)
237 IPC_STRUCT_TRAITS_MEMBER(page_id) 246 IPC_STRUCT_TRAITS_MEMBER(page_id)
247 IPC_STRUCT_TRAITS_MEMBER(nav_entry_id)
238 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset) 248 IPC_STRUCT_TRAITS_MEMBER(pending_history_list_offset)
239 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset) 249 IPC_STRUCT_TRAITS_MEMBER(current_history_list_offset)
240 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length) 250 IPC_STRUCT_TRAITS_MEMBER(current_history_list_length)
241 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list) 251 IPC_STRUCT_TRAITS_MEMBER(should_clear_history_list)
242 IPC_STRUCT_TRAITS_END() 252 IPC_STRUCT_TRAITS_END()
243 253
244 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams) 254 IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
245 IPC_STRUCT_TRAITS_MEMBER(is_post) 255 IPC_STRUCT_TRAITS_MEMBER(is_post)
246 IPC_STRUCT_TRAITS_MEMBER(extra_headers) 256 IPC_STRUCT_TRAITS_MEMBER(extra_headers)
247 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data) 257 IPC_STRUCT_TRAITS_MEMBER(browser_initiated_post_data)
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad) 848 IPC_MESSAGE_ROUTED0(FrameHostMsg_DispatchLoad)
839 849
840 #if defined(OS_MACOSX) || defined(OS_ANDROID) 850 #if defined(OS_MACOSX) || defined(OS_ANDROID)
841 851
842 // Message to show/hide a popup menu using native controls. 852 // Message to show/hide a popup menu using native controls.
843 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 853 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
844 FrameHostMsg_ShowPopup_Params) 854 FrameHostMsg_ShowPopup_Params)
845 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 855 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
846 856
847 #endif 857 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698