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

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

Issue 14985014: Introduce content::PageState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation issues. Created 7 years, 7 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 "base/string16.h" 10 #include "base/string16.h"
11 #include "cc/output/compositor_frame.h" 11 #include "cc/output/compositor_frame.h"
12 #include "cc/output/compositor_frame_ack.h" 12 #include "cc/output/compositor_frame_ack.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/common/content_param_traits.h" 14 #include "content/common/content_param_traits.h"
15 #include "content/common/navigation_gesture.h" 15 #include "content/common/navigation_gesture.h"
16 #include "content/common/pepper_renderer_instance_data.h" 16 #include "content/common/pepper_renderer_instance_data.h"
17 #include "content/common/view_message_enums.h" 17 #include "content/common/view_message_enums.h"
18 #include "content/port/common/input_event_ack_state.h" 18 #include "content/port/common/input_event_ack_state.h"
19 #include "content/public/common/common_param_traits.h" 19 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/context_menu_params.h" 20 #include "content/public/common/context_menu_params.h"
21 #include "content/public/common/favicon_url.h" 21 #include "content/public/common/favicon_url.h"
22 #include "content/public/common/file_chooser_params.h" 22 #include "content/public/common/file_chooser_params.h"
23 #include "content/public/common/frame_navigate_params.h" 23 #include "content/public/common/frame_navigate_params.h"
24 #include "content/public/common/javascript_message_type.h" 24 #include "content/public/common/javascript_message_type.h"
25 #include "content/public/common/page_state.h"
25 #include "content/public/common/page_zoom.h" 26 #include "content/public/common/page_zoom.h"
26 #include "content/public/common/referrer.h" 27 #include "content/public/common/referrer.h"
27 #include "content/public/common/renderer_preferences.h" 28 #include "content/public/common/renderer_preferences.h"
28 #include "content/public/common/stop_find_action.h" 29 #include "content/public/common/stop_find_action.h"
29 #include "content/public/common/three_d_api_types.h" 30 #include "content/public/common/three_d_api_types.h"
30 #include "content/public/common/window_container_type.h" 31 #include "content/public/common/window_container_type.h"
31 #include "ipc/ipc_channel_handle.h" 32 #include "ipc/ipc_channel_handle.h"
32 #include "ipc/ipc_message_macros.h" 33 #include "ipc/ipc_message_macros.h"
33 #include "ipc/ipc_platform_file.h" 34 #include "ipc/ipc_platform_file.h"
34 #include "media/audio/audio_parameters.h" 35 #include "media/audio/audio_parameters.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 IPC_STRUCT_TRAITS_MEMBER(x) 156 IPC_STRUCT_TRAITS_MEMBER(x)
156 IPC_STRUCT_TRAITS_MEMBER(y) 157 IPC_STRUCT_TRAITS_MEMBER(y)
157 IPC_STRUCT_TRAITS_MEMBER(link_url) 158 IPC_STRUCT_TRAITS_MEMBER(link_url)
158 IPC_STRUCT_TRAITS_MEMBER(link_text) 159 IPC_STRUCT_TRAITS_MEMBER(link_text)
159 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) 160 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
160 IPC_STRUCT_TRAITS_MEMBER(src_url) 161 IPC_STRUCT_TRAITS_MEMBER(src_url)
161 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) 162 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked)
162 IPC_STRUCT_TRAITS_MEMBER(page_url) 163 IPC_STRUCT_TRAITS_MEMBER(page_url)
163 IPC_STRUCT_TRAITS_MEMBER(keyword_url) 164 IPC_STRUCT_TRAITS_MEMBER(keyword_url)
164 IPC_STRUCT_TRAITS_MEMBER(frame_url) 165 IPC_STRUCT_TRAITS_MEMBER(frame_url)
165 IPC_STRUCT_TRAITS_MEMBER(frame_content_state) 166 IPC_STRUCT_TRAITS_MEMBER(frame_page_state)
166 IPC_STRUCT_TRAITS_MEMBER(media_flags) 167 IPC_STRUCT_TRAITS_MEMBER(media_flags)
167 IPC_STRUCT_TRAITS_MEMBER(selection_text) 168 IPC_STRUCT_TRAITS_MEMBER(selection_text)
168 IPC_STRUCT_TRAITS_MEMBER(misspelled_word) 169 IPC_STRUCT_TRAITS_MEMBER(misspelled_word)
169 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions) 170 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
170 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled) 171 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled)
171 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled) 172 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
172 IPC_STRUCT_TRAITS_MEMBER(is_editable) 173 IPC_STRUCT_TRAITS_MEMBER(is_editable)
173 #if defined(OS_MACOSX) 174 #if defined(OS_MACOSX)
174 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default) 175 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
175 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right) 176 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right)
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 IPC_STRUCT_MEMBER(bool, was_within_same_page) 409 IPC_STRUCT_MEMBER(bool, was_within_same_page)
409 410
410 // The status code of the HTTP request. 411 // The status code of the HTTP request.
411 IPC_STRUCT_MEMBER(int, http_status_code) 412 IPC_STRUCT_MEMBER(int, http_status_code)
412 413
413 // True if the connection was proxied. In this case, socket_address 414 // True if the connection was proxied. In this case, socket_address
414 // will represent the address of the proxy, rather than the remote host. 415 // will represent the address of the proxy, rather than the remote host.
415 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) 416 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
416 417
417 // Serialized history item state to store in the navigation entry. 418 // Serialized history item state to store in the navigation entry.
418 IPC_STRUCT_MEMBER(std::string, content_state) 419 IPC_STRUCT_MEMBER(content::PageState, page_state)
419 420
420 // Original request's URL. 421 // Original request's URL.
421 IPC_STRUCT_MEMBER(GURL, original_request_url) 422 IPC_STRUCT_MEMBER(GURL, original_request_url)
422 423
423 // User agent override used to navigate. 424 // User agent override used to navigate.
424 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) 425 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
425 426
426 // Notifies the browser that for this navigation, the session history was 427 // Notifies the browser that for this navigation, the session history was
427 // successfully cleared. 428 // successfully cleared.
428 IPC_STRUCT_MEMBER(bool, history_list_was_cleared) 429 IPC_STRUCT_MEMBER(bool, history_list_was_cleared)
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url) 595 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url)
595 596
596 // The URL to send in the "Referer" header field. Can be empty if there is 597 // The URL to send in the "Referer" header field. Can be empty if there is
597 // no referrer. 598 // no referrer.
598 IPC_STRUCT_MEMBER(content::Referrer, referrer) 599 IPC_STRUCT_MEMBER(content::Referrer, referrer)
599 600
600 // The type of transition. 601 // The type of transition.
601 IPC_STRUCT_MEMBER(content::PageTransition, transition) 602 IPC_STRUCT_MEMBER(content::PageTransition, transition)
602 603
603 // Opaque history state (received by ViewHostMsg_UpdateState). 604 // Opaque history state (received by ViewHostMsg_UpdateState).
604 IPC_STRUCT_MEMBER(std::string, state) 605 IPC_STRUCT_MEMBER(content::PageState, page_state)
605 606
606 // Type of navigation. 607 // Type of navigation.
607 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) 608 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type)
608 609
609 // The time the request was created 610 // The time the request was created
610 IPC_STRUCT_MEMBER(base::Time, request_time) 611 IPC_STRUCT_MEMBER(base::Time, request_time)
611 612
612 // Extra headers (separated by \n) to send during the request. 613 // Extra headers (separated by \n) to send during the request.
613 IPC_STRUCT_MEMBER(std::string, extra_headers) 614 IPC_STRUCT_MEMBER(std::string, extra_headers)
614 615
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 IPC_MESSAGE_ROUTED4(ViewHostMsg_MediaNotification, 1479 IPC_MESSAGE_ROUTED4(ViewHostMsg_MediaNotification,
1479 int64 /* player_cookie, distinguishes instances */, 1480 int64 /* player_cookie, distinguishes instances */,
1480 bool /* has_video */, 1481 bool /* has_video */,
1481 bool /* has_audio */, 1482 bool /* has_audio */,
1482 bool /* is_playing */) 1483 bool /* is_playing */)
1483 1484
1484 // Notifies the browser that we have session history information. 1485 // Notifies the browser that we have session history information.
1485 // page_id: unique ID that allows us to distinguish between history entries. 1486 // page_id: unique ID that allows us to distinguish between history entries.
1486 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState, 1487 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
1487 int32 /* page_id */, 1488 int32 /* page_id */,
1488 std::string /* state */) 1489 content::PageState /* state */)
1489 1490
1490 // Notifies the browser that a document has been loaded in a frame. 1491 // Notifies the browser that a document has been loaded in a frame.
1491 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame, 1492 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame,
1492 int64 /* frame_id */) 1493 int64 /* frame_id */)
1493 1494
1494 // Notifies the browser that a frame finished loading. 1495 // Notifies the browser that a frame finished loading.
1495 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidFinishLoad, 1496 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidFinishLoad,
1496 int64 /* frame_id */, 1497 int64 /* frame_id */,
1497 GURL /* validated_url */, 1498 GURL /* validated_url */,
1498 bool /* is_main_frame */) 1499 bool /* is_main_frame */)
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
2293 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2294 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2294 // for details. 2295 // for details.
2295 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2296 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2296 LOGFONT /* font_data */, 2297 LOGFONT /* font_data */,
2297 string16 /* characters */) 2298 string16 /* characters */)
2298 #endif 2299 #endif
2299 2300
2300 // Adding a new message? Stick to the sort order above: first platform 2301 // Adding a new message? Stick to the sort order above: first platform
2301 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2302 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2302 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2303 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698