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

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

Issue 11316316: Implement an IsAllowed function in the pepper PPB_Broker_Trusted API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« no previous file with comments | « content/common/pepper_renderer_instance_data.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 IPC_STRUCT_TRAITS_MEMBER(transition) 321 IPC_STRUCT_TRAITS_MEMBER(transition)
321 IPC_STRUCT_TRAITS_MEMBER(redirects) 322 IPC_STRUCT_TRAITS_MEMBER(redirects)
322 IPC_STRUCT_TRAITS_MEMBER(should_update_history) 323 IPC_STRUCT_TRAITS_MEMBER(should_update_history)
323 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url) 324 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
324 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding) 325 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
325 IPC_STRUCT_TRAITS_MEMBER(password_form) 326 IPC_STRUCT_TRAITS_MEMBER(password_form)
326 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type) 327 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
327 IPC_STRUCT_TRAITS_MEMBER(socket_address) 328 IPC_STRUCT_TRAITS_MEMBER(socket_address)
328 IPC_STRUCT_TRAITS_END() 329 IPC_STRUCT_TRAITS_END()
329 330
331 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
332 IPC_STRUCT_TRAITS_MEMBER(render_process_id)
333 IPC_STRUCT_TRAITS_MEMBER(render_view_id)
334 IPC_STRUCT_TRAITS_MEMBER(document_url)
335 IPC_STRUCT_TRAITS_MEMBER(plugin_url)
336 IPC_STRUCT_TRAITS_END()
337
330 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences) 338 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
331 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops) 339 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
332 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text) 340 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
333 IPC_STRUCT_TRAITS_MEMBER(hinting) 341 IPC_STRUCT_TRAITS_MEMBER(hinting)
334 IPC_STRUCT_TRAITS_MEMBER(use_autohinter) 342 IPC_STRUCT_TRAITS_MEMBER(use_autohinter)
335 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps) 343 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps)
336 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering) 344 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering)
337 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning) 345 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning)
338 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color) 346 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color)
339 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color) 347 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color)
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 // used to identify the proper process when the renderer notifies it that the 1954 // used to identify the proper process when the renderer notifies it that the
1947 // plugin is hung. 1955 // plugin is hung.
1948 // 1956 //
1949 // On error an empty string and null handles are returned. 1957 // On error an empty string and null handles are returned.
1950 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, 1958 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin,
1951 FilePath /* path */, 1959 FilePath /* path */,
1952 IPC::ChannelHandle /* handle to channel */, 1960 IPC::ChannelHandle /* handle to channel */,
1953 int /* plugin_child_id */) 1961 int /* plugin_child_id */)
1954 1962
1955 // Notification that a plugin has created a new plugin instance. The parameters 1963 // Notification that a plugin has created a new plugin instance. The parameters
1956 // indicate the plugin process ID that we're creating the instance for, and the 1964 // indicate:
1957 // routing ID of the render view that the plugin instance is associated with. 1965 // -The plugin process ID that we're creating the instance for.
1958 // This allows us to create a mapping in the browser process for what objects a 1966 // -The instance ID of the instance being created.
1959 // given PP_Instance is associated with. 1967 // -A PepperRendererInstanceData struct which contains properties from the
1968 // renderer which are associated with the plugin instance. This includes the
1969 // routing ID of the associated render view and the URL of plugin.
1970 // -Whether the plugin we're creating an instance for is external or internal.
1960 // 1971 //
1961 // This message must be sync even though it returns no parameters to avoid 1972 // This message must be sync even though it returns no parameters to avoid
1962 // a race condition with the plugin process. The plugin process sends messages 1973 // a race condition with the plugin process. The plugin process sends messages
1963 // to the browser that assume the browser knows about the instance. We need to 1974 // to the browser that assume the browser knows about the instance. We need to
1964 // make sure that the browser actually knows about the instance before we tell 1975 // make sure that the browser actually knows about the instance before we tell
1965 // the plugin to run. 1976 // the plugin to run.
1966 IPC_SYNC_MESSAGE_CONTROL4_0(ViewHostMsg_DidCreateOutOfProcessPepperInstance, 1977 IPC_SYNC_MESSAGE_CONTROL4_0(
1967 int /* plugin_child_id */, 1978 ViewHostMsg_DidCreateOutOfProcessPepperInstance,
1968 int32 /* pp_instance */, 1979 int /* plugin_child_id */,
1969 int /* view_routing_id */, 1980 int32 /* pp_instance */,
1970 bool /* is_external */) 1981 content::PepperRendererInstanceData /* creation_data */,
1982 bool /* is_external */)
1971 1983
1972 // Notification that a plugin has destroyed an instance. This is the opposite of 1984 // Notification that a plugin has destroyed an instance. This is the opposite of
1973 // the "DidCreate" message above. 1985 // the "DidCreate" message above.
1974 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance, 1986 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance,
1975 int /* plugin_child_id */, 1987 int /* plugin_child_id */,
1976 int32 /* pp_instance */, 1988 int32 /* pp_instance */,
1977 bool /* is_external */) 1989 bool /* is_external */)
1978 1990
1979 // A renderer sends this to the browser process when it wants to 1991 // A renderer sends this to the browser process when it wants to
1980 // create a ppapi broker. The browser will create the broker process 1992 // create a ppapi broker. The browser will create the broker process
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 int /* arb_robustness_status_code */) 2441 int /* arb_robustness_status_code */)
2430 2442
2431 #if defined(OS_WIN) 2443 #if defined(OS_WIN)
2432 // Request that the given font characters be loaded by the browser so it's 2444 // Request that the given font characters be loaded by the browser so it's
2433 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2445 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2434 // for details. 2446 // for details.
2435 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2447 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2436 LOGFONT /* font_data */, 2448 LOGFONT /* font_data */,
2437 string16 /* characters */) 2449 string16 /* characters */)
2438 #endif 2450 #endif
OLDNEW
« no previous file with comments | « content/common/pepper_renderer_instance_data.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698