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 "base/string16.h" | 10 #include "base/string16.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
13 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
14 #include "content/common/navigation_gesture.h" | 14 #include "content/common/navigation_gesture.h" |
15 #include "content/common/pepper_renderer_instance_data.h" | |
15 #include "content/common/view_message_enums.h" | 16 #include "content/common/view_message_enums.h" |
16 #include "content/port/common/input_event_ack_state.h" | 17 #include "content/port/common/input_event_ack_state.h" |
17 #include "content/public/common/common_param_traits.h" | 18 #include "content/public/common/common_param_traits.h" |
18 #include "content/public/common/context_menu_params.h" | 19 #include "content/public/common/context_menu_params.h" |
19 #include "content/public/common/file_chooser_params.h" | 20 #include "content/public/common/file_chooser_params.h" |
20 #include "content/public/common/frame_navigate_params.h" | 21 #include "content/public/common/frame_navigate_params.h" |
21 #include "content/public/common/javascript_message_type.h" | 22 #include "content/public/common/javascript_message_type.h" |
22 #include "content/public/common/page_zoom.h" | 23 #include "content/public/common/page_zoom.h" |
23 #include "content/public/common/referrer.h" | 24 #include "content/public/common/referrer.h" |
24 #include "content/public/common/renderer_preferences.h" | 25 #include "content/public/common/renderer_preferences.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
321 IPC_STRUCT_TRAITS_MEMBER(transition) | 322 IPC_STRUCT_TRAITS_MEMBER(transition) |
322 IPC_STRUCT_TRAITS_MEMBER(redirects) | 323 IPC_STRUCT_TRAITS_MEMBER(redirects) |
323 IPC_STRUCT_TRAITS_MEMBER(should_update_history) | 324 IPC_STRUCT_TRAITS_MEMBER(should_update_history) |
324 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) | 325 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) |
325 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) | 326 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) |
326 IPC_STRUCT_TRAITS_MEMBER(password_form) | 327 IPC_STRUCT_TRAITS_MEMBER(password_form) |
327 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) | 328 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) |
328 IPC_STRUCT_TRAITS_MEMBER(socket_address) | 329 IPC_STRUCT_TRAITS_MEMBER(socket_address) |
329 IPC_STRUCT_TRAITS_END() | 330 IPC_STRUCT_TRAITS_END() |
330 | 331 |
332 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData) | |
333 IPC_STRUCT_TRAITS_MEMBER(render_process_id) | |
334 IPC_STRUCT_TRAITS_MEMBER(render_view_id) | |
335 IPC_STRUCT_TRAITS_MEMBER(document_url) | |
336 IPC_STRUCT_TRAITS_MEMBER(plugin_url) | |
337 IPC_STRUCT_TRAITS_END() | |
338 | |
331 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) | 339 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) |
332 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) | 340 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) |
333 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) | 341 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) |
334 IPC_STRUCT_TRAITS_MEMBER(hinting) | 342 IPC_STRUCT_TRAITS_MEMBER(hinting) |
335 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) | 343 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) |
336 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) | 344 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) |
337 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) | 345 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) |
338 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) | 346 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) |
339 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) | 347 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) |
340 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) | 348 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) |
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1949 // used to identify the proper process when the renderer notifies it that the | 1957 // used to identify the proper process when the renderer notifies it that the |
1950 // plugin is hung. | 1958 // plugin is hung. |
1951 // | 1959 // |
1952 // On error an empty string and null handles are returned. | 1960 // On error an empty string and null handles are returned. |
1953 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1961 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
1954 FilePath /* path */, | 1962 FilePath /* path */, |
1955 IPC::ChannelHandle /* handle to channel */, | 1963 IPC::ChannelHandle /* handle to channel */, |
1956 int /* plugin_child_id */) | 1964 int /* plugin_child_id */) |
1957 | 1965 |
1958 // Notification that a plugin has created a new plugin instance. The parameters | 1966 // Notification that a plugin has created a new plugin instance. The parameters |
1959 // indicate the plugin process ID that we're creating the instance for, and the | 1967 // indicate: |
1960 // routing ID of the render view that the plugin instance is associated with. | 1968 // -The plugin process ID that we're creating the instance for. |
1961 // This allows us to create a mapping in the browser process for what objects a | 1969 // -The instance id of the instance being created. |
yzshen1
2012/12/06 19:59:46
id -> ID to be consistent.
raymes
2012/12/07 21:32:19
Done.
| |
1962 // given PP_Instance is associated with. | 1970 // -A PepperRendererInstanceData struct which contains properties from the |
1971 // renderer which are associated with the plugin instance. This includes the | |
1972 // routing ID of the associated render view and the URL of plugin. | |
1973 // -Whether the plugin we're creating an instance for is external or internal. | |
1963 // | 1974 // |
1964 // This message must be sync even though it returns no parameters to avoid | 1975 // This message must be sync even though it returns no parameters to avoid |
1965 // a race condition with the plugin process. The plugin process sends messages | 1976 // a race condition with the plugin process. The plugin process sends messages |
1966 // to the browser that assume the browser knows about the instance. We need to | 1977 // to the browser that assume the browser knows about the instance. We need to |
1967 // make sure that the browser actually knows about the instance before we tell | 1978 // make sure that the browser actually knows about the instance before we tell |
1968 // the plugin to run. | 1979 // the plugin to run. |
1969 IPC_SYNC_MESSAGE_CONTROL4_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, | 1980 IPC_SYNC_MESSAGE_CONTROL4_0( |
1970 int /* plugin_child_id */, | 1981 ViewHostMsg_DidCreateOutOfProcessPepperInstance, |
1971 int32 /* pp_instance */, | 1982 int /* plugin_child_id */, |
1972 int /* view_routing_id */, | 1983 int32 /* pp_instance */, |
1973 bool /* is_external */) | 1984 content::PepperRendererInstanceData /* creation_data */, |
1985 bool /* is_external */) | |
1974 | 1986 |
1975 // Notification that a plugin has destroyed an instance. This is the opposite of | 1987 // Notification that a plugin has destroyed an instance. This is the opposite of |
1976 // the "DidCreate" message above. | 1988 // the "DidCreate" message above. |
1977 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, | 1989 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, |
1978 int /* plugin_child_id */, | 1990 int /* plugin_child_id */, |
1979 int32 /* pp_instance */, | 1991 int32 /* pp_instance */, |
1980 bool /* is_external */) | 1992 bool /* is_external */) |
1981 | 1993 |
1982 // A renderer sends this to the browser process when it wants to | 1994 // A renderer sends this to the browser process when it wants to |
1983 // create a ppapi broker. The browser will create the broker process | 1995 // create a ppapi broker. The browser will create the broker process |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2432 int /* arb_robustness_status_code */) | 2444 int /* arb_robustness_status_code */) |
2433 | 2445 |
2434 #if defined(OS_WIN) | 2446 #if defined(OS_WIN) |
2435 // Request that the given font characters be loaded by the browser so it's | 2447 // Request that the given font characters be loaded by the browser so it's |
2436 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2448 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2437 // for details. | 2449 // for details. |
2438 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2450 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2439 LOGFONT /* font_data */, | 2451 LOGFONT /* font_data */, |
2440 string16 /* characters */) | 2452 string16 /* characters */) |
2441 #endif | 2453 #endif |
OLD | NEW |