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

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: Add comments to the top of page_state.h 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(misspelling_hash) 170 IPC_STRUCT_TRAITS_MEMBER(misspelling_hash)
170 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions) 171 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
171 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled) 172 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled)
172 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled) 173 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
173 IPC_STRUCT_TRAITS_MEMBER(is_editable) 174 IPC_STRUCT_TRAITS_MEMBER(is_editable)
174 #if defined(OS_MACOSX) 175 #if defined(OS_MACOSX)
175 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default) 176 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 IPC_STRUCT_MEMBER(bool, was_within_same_page) 410 IPC_STRUCT_MEMBER(bool, was_within_same_page)
410 411
411 // The status code of the HTTP request. 412 // The status code of the HTTP request.
412 IPC_STRUCT_MEMBER(int, http_status_code) 413 IPC_STRUCT_MEMBER(int, http_status_code)
413 414
414 // True if the connection was proxied. In this case, socket_address 415 // True if the connection was proxied. In this case, socket_address
415 // will represent the address of the proxy, rather than the remote host. 416 // will represent the address of the proxy, rather than the remote host.
416 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) 417 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
417 418
418 // Serialized history item state to store in the navigation entry. 419 // Serialized history item state to store in the navigation entry.
419 IPC_STRUCT_MEMBER(std::string, content_state) 420 IPC_STRUCT_MEMBER(content::PageState, page_state)
420 421
421 // Original request's URL. 422 // Original request's URL.
422 IPC_STRUCT_MEMBER(GURL, original_request_url) 423 IPC_STRUCT_MEMBER(GURL, original_request_url)
423 424
424 // User agent override used to navigate. 425 // User agent override used to navigate.
425 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) 426 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
426 427
427 // Notifies the browser that for this navigation, the session history was 428 // Notifies the browser that for this navigation, the session history was
428 // successfully cleared. 429 // successfully cleared.
429 IPC_STRUCT_MEMBER(bool, history_list_was_cleared) 430 IPC_STRUCT_MEMBER(bool, history_list_was_cleared)
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url) 596 IPC_STRUCT_MEMBER(GURL, history_url_for_data_url)
596 597
597 // The URL to send in the "Referer" header field. Can be empty if there is 598 // The URL to send in the "Referer" header field. Can be empty if there is
598 // no referrer. 599 // no referrer.
599 IPC_STRUCT_MEMBER(content::Referrer, referrer) 600 IPC_STRUCT_MEMBER(content::Referrer, referrer)
600 601
601 // The type of transition. 602 // The type of transition.
602 IPC_STRUCT_MEMBER(content::PageTransition, transition) 603 IPC_STRUCT_MEMBER(content::PageTransition, transition)
603 604
604 // Opaque history state (received by ViewHostMsg_UpdateState). 605 // Opaque history state (received by ViewHostMsg_UpdateState).
605 IPC_STRUCT_MEMBER(std::string, state) 606 IPC_STRUCT_MEMBER(content::PageState, page_state)
606 607
607 // Type of navigation. 608 // Type of navigation.
608 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) 609 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type)
609 610
610 // The time the request was created 611 // The time the request was created
611 IPC_STRUCT_MEMBER(base::Time, request_time) 612 IPC_STRUCT_MEMBER(base::Time, request_time)
612 613
613 // Extra headers (separated by \n) to send during the request. 614 // Extra headers (separated by \n) to send during the request.
614 IPC_STRUCT_MEMBER(std::string, extra_headers) 615 IPC_STRUCT_MEMBER(std::string, extra_headers)
615 616
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 IPC_MESSAGE_ROUTED4(ViewHostMsg_MediaNotification, 1484 IPC_MESSAGE_ROUTED4(ViewHostMsg_MediaNotification,
1484 int64 /* player_cookie, distinguishes instances */, 1485 int64 /* player_cookie, distinguishes instances */,
1485 bool /* has_video */, 1486 bool /* has_video */,
1486 bool /* has_audio */, 1487 bool /* has_audio */,
1487 bool /* is_playing */) 1488 bool /* is_playing */)
1488 1489
1489 // Notifies the browser that we have session history information. 1490 // Notifies the browser that we have session history information.
1490 // page_id: unique ID that allows us to distinguish between history entries. 1491 // page_id: unique ID that allows us to distinguish between history entries.
1491 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState, 1492 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
1492 int32 /* page_id */, 1493 int32 /* page_id */,
1493 std::string /* state */) 1494 content::PageState /* state */)
1494 1495
1495 // Notifies the browser that a document has been loaded in a frame. 1496 // Notifies the browser that a document has been loaded in a frame.
1496 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame, 1497 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame,
1497 int64 /* frame_id */) 1498 int64 /* frame_id */)
1498 1499
1499 // Notifies the browser that a frame finished loading. 1500 // Notifies the browser that a frame finished loading.
1500 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidFinishLoad, 1501 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidFinishLoad,
1501 int64 /* frame_id */, 1502 int64 /* frame_id */,
1502 GURL /* validated_url */, 1503 GURL /* validated_url */,
1503 bool /* is_main_frame */) 1504 bool /* is_main_frame */)
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 // Since the browser keeps handles to the allocated transport DIBs, this 2301 // Since the browser keeps handles to the allocated transport DIBs, this
2301 // message is sent to tell the browser that it may release them when the 2302 // message is sent to tell the browser that it may release them when the
2302 // renderer is finished with them. 2303 // renderer is finished with them.
2303 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 2304 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
2304 TransportDIB::Id /* DIB id */) 2305 TransportDIB::Id /* DIB id */)
2305 #endif 2306 #endif
2306 2307
2307 // Adding a new message? Stick to the sort order above: first platform 2308 // Adding a new message? Stick to the sort order above: first platform
2308 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2309 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2309 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2310 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698