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

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

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | content/renderer/render_view.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 17 matching lines...) Expand all
28 #include "ui/base/ime/text_input_type.h" 28 #include "ui/base/ime/text_input_type.h"
29 #include "ui/base/range/range.h" 29 #include "ui/base/range/range.h"
30 #include "ui/gfx/rect.h" 30 #include "ui/gfx/rect.h"
31 #include "webkit/glue/context_menu.h" 31 #include "webkit/glue/context_menu.h"
32 #include "webkit/glue/password_form.h" 32 #include "webkit/glue/password_form.h"
33 #include "webkit/glue/webcookie.h" 33 #include "webkit/glue/webcookie.h"
34 #include "webkit/glue/webmenuitem.h" 34 #include "webkit/glue/webmenuitem.h"
35 #include "webkit/glue/webpreferences.h" 35 #include "webkit/glue/webpreferences.h"
36 #include "webkit/glue/webaccessibility.h" 36 #include "webkit/glue/webaccessibility.h"
37 #include "webkit/plugins/npapi/webplugin.h" 37 #include "webkit/plugins/npapi/webplugin.h"
38 #include "webkit/plugins/npapi/webplugininfo.h" 38 #include "webkit/plugins/webplugininfo.h"
39 39
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 #include "content/common/font_descriptor_mac.h" 41 #include "content/common/font_descriptor_mac.h"
42 #endif 42 #endif
43 43
44 // Define enums used in this file inside an include-guard. 44 // Define enums used in this file inside an include-guard.
45 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ 45 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_
46 #define CONTENT_COMMON_VIEW_MESSAGES_H_ 46 #define CONTENT_COMMON_VIEW_MESSAGES_H_
47 47
48 struct ViewHostMsg_AccessibilityNotification_Type { 48 struct ViewHostMsg_AccessibilityNotification_Type {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginGeometry) 387 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginGeometry)
388 IPC_STRUCT_TRAITS_MEMBER(window) 388 IPC_STRUCT_TRAITS_MEMBER(window)
389 IPC_STRUCT_TRAITS_MEMBER(window_rect) 389 IPC_STRUCT_TRAITS_MEMBER(window_rect)
390 IPC_STRUCT_TRAITS_MEMBER(clip_rect) 390 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
391 IPC_STRUCT_TRAITS_MEMBER(cutout_rects) 391 IPC_STRUCT_TRAITS_MEMBER(cutout_rects)
392 IPC_STRUCT_TRAITS_MEMBER(rects_valid) 392 IPC_STRUCT_TRAITS_MEMBER(rects_valid)
393 IPC_STRUCT_TRAITS_MEMBER(visible) 393 IPC_STRUCT_TRAITS_MEMBER(visible)
394 IPC_STRUCT_TRAITS_END() 394 IPC_STRUCT_TRAITS_END()
395 395
396 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginMimeType) 396 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginMimeType)
397 IPC_STRUCT_TRAITS_MEMBER(mime_type) 397 IPC_STRUCT_TRAITS_MEMBER(mime_type)
398 IPC_STRUCT_TRAITS_MEMBER(file_extensions) 398 IPC_STRUCT_TRAITS_MEMBER(file_extensions)
399 IPC_STRUCT_TRAITS_MEMBER(description) 399 IPC_STRUCT_TRAITS_MEMBER(description)
400 IPC_STRUCT_TRAITS_MEMBER(additional_param_names) 400 IPC_STRUCT_TRAITS_MEMBER(additional_param_names)
401 IPC_STRUCT_TRAITS_MEMBER(additional_param_values) 401 IPC_STRUCT_TRAITS_MEMBER(additional_param_values)
402 IPC_STRUCT_TRAITS_END() 402 IPC_STRUCT_TRAITS_END()
403 403
404 IPC_STRUCT_TRAITS_BEGIN(webkit::npapi::WebPluginInfo) 404 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginInfo)
405 IPC_STRUCT_TRAITS_MEMBER(name) 405 IPC_STRUCT_TRAITS_MEMBER(name)
406 IPC_STRUCT_TRAITS_MEMBER(path) 406 IPC_STRUCT_TRAITS_MEMBER(path)
407 IPC_STRUCT_TRAITS_MEMBER(version) 407 IPC_STRUCT_TRAITS_MEMBER(version)
408 IPC_STRUCT_TRAITS_MEMBER(desc) 408 IPC_STRUCT_TRAITS_MEMBER(desc)
409 IPC_STRUCT_TRAITS_MEMBER(mime_types) 409 IPC_STRUCT_TRAITS_MEMBER(mime_types)
410 IPC_STRUCT_TRAITS_MEMBER(enabled) 410 IPC_STRUCT_TRAITS_MEMBER(enabled)
411 IPC_STRUCT_TRAITS_MEMBER(type)
411 IPC_STRUCT_TRAITS_END() 412 IPC_STRUCT_TRAITS_END()
412 413
413 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent) 414 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent)
414 IPC_STRUCT_TRAITS_MEMBER(id) 415 IPC_STRUCT_TRAITS_MEMBER(id)
415 IPC_STRUCT_TRAITS_MEMBER(type) 416 IPC_STRUCT_TRAITS_MEMBER(type)
416 IPC_STRUCT_TRAITS_MEMBER(params) 417 IPC_STRUCT_TRAITS_MEMBER(params)
417 IPC_STRUCT_TRAITS_MEMBER(time) 418 IPC_STRUCT_TRAITS_MEMBER(time)
418 IPC_STRUCT_TRAITS_END() 419 IPC_STRUCT_TRAITS_END()
419 420
420 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) 421 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 // Used to check if cookies are enabled for the given URL. This may block 1551 // Used to check if cookies are enabled for the given URL. This may block
1551 // waiting for a previous SetCookie message to be processed. 1552 // waiting for a previous SetCookie message to be processed.
1552 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CookiesEnabled, 1553 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CookiesEnabled,
1553 GURL /* url */, 1554 GURL /* url */,
1554 GURL /* first_party_for_cookies */, 1555 GURL /* first_party_for_cookies */,
1555 bool /* cookies_enabled */) 1556 bool /* cookies_enabled */)
1556 1557
1557 // Used to get the list of plugins 1558 // Used to get the list of plugins
1558 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, 1559 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
1559 bool /* refresh*/, 1560 bool /* refresh*/,
1560 std::vector<webkit::npapi::WebPluginInfo> /* plugins */) 1561 std::vector<webkit::WebPluginInfo> /* plugins */)
1561 1562
1562 // Return information about a plugin for the given URL and MIME 1563 // Return information about a plugin for the given URL and MIME
1563 // type. If there is no matching plugin, |found| is false. If 1564 // type. If there is no matching plugin, |found| is false. If
1564 // |enabled| in the WebPluginInfo struct is false, the plug-in is 1565 // |enabled| in the WebPluginInfo struct is false, the plug-in is
1565 // treated as if it was not installed at all. 1566 // treated as if it was not installed at all.
1566 // |actual_mime_type| is the actual mime type supported by the 1567 // |actual_mime_type| is the actual mime type supported by the
1567 // plugin found that match the URL given (one for each item in 1568 // plugin found that match the URL given (one for each item in
1568 // |info|). 1569 // |info|).
1569 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo, 1570 IPC_SYNC_MESSAGE_CONTROL4_3(ViewHostMsg_GetPluginInfo,
1570 int /* routing_id */, 1571 int /* routing_id */,
1571 GURL /* url */, 1572 GURL /* url */,
1572 GURL /* policy_url */, 1573 GURL /* policy_url */,
1573 std::string /* mime_type */, 1574 std::string /* mime_type */,
1574 bool /* found */, 1575 bool /* found */,
1575 webkit::npapi::WebPluginInfo /* plugin info */, 1576 webkit::WebPluginInfo /* plugin info */,
1576 std::string /* actual_mime_type */) 1577 std::string /* actual_mime_type */)
1577 1578
1578 // A renderer sends this to the browser process when it wants to 1579 // A renderer sends this to the browser process when it wants to
1579 // create a plugin. The browser will create the plugin process if 1580 // create a plugin. The browser will create the plugin process if
1580 // necessary, and will return a handle to the channel on success. 1581 // necessary, and will return a handle to the channel on success.
1581 // On error an empty string is returned. 1582 // On error an empty string is returned.
1582 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, 1583 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin,
1583 int /* routing_id */, 1584 int /* routing_id */,
1584 GURL /* url */, 1585 GURL /* url */,
1585 std::string /* mime_type */, 1586 std::string /* mime_type */,
1586 IPC::ChannelHandle /* channel_handle */, 1587 IPC::ChannelHandle /* channel_handle */,
1587 webkit::npapi::WebPluginInfo /* info */) 1588 webkit::WebPluginInfo /* info */)
1588 1589
1589 // A renderer sends this to the browser process when it wants to create a 1590 // A renderer sends this to the browser process when it wants to create a
1590 // worker. The browser will create the worker process if necessary, and 1591 // worker. The browser will create the worker process if necessary, and
1591 // will return the route id on success. On error returns MSG_ROUTING_NONE. 1592 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1592 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, 1593 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
1593 ViewHostMsg_CreateWorker_Params, 1594 ViewHostMsg_CreateWorker_Params,
1594 int /* route_id */) 1595 int /* route_id */)
1595 1596
1596 // This message is sent to the browser to see if an instance of this shared 1597 // This message is sent to the browser to see if an instance of this shared
1597 // worker already exists. If so, it returns exists == true. If a 1598 // worker already exists. If so, it returns exists == true. If a
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 int32 /* complete status */) 2056 int32 /* complete status */)
2056 2057
2057 // Request updated information about the client firewall traversal policy. 2058 // Request updated information about the client firewall traversal policy.
2058 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2059 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2059 // being sent back. 2060 // being sent back.
2060 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2061 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2061 2062
2062 // Notifies the browser of an event occurring in the media pipeline. 2063 // Notifies the browser of an event occurring in the media pipeline.
2063 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2064 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2064 media::MediaLogEvent /* event */) 2065 media::MediaLogEvent /* event */)
OLDNEW
« no previous file with comments | « content/common/pepper_plugin_registry.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698