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

Side by Side Diff: ppapi/api/private/ppp_flash_browser_operations.idl

Issue 10566014: Change PP_Flash_BrowserOperations_SiteSetting.site from PP_Var to const char*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove assert_size Created 8 years, 6 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 | « ppapi/api/pp_stdint.idl ('k') | ppapi/c/private/ppp_flash_browser_operations.h » ('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 5
6 /** 6 /**
7 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface. 7 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M20 = 1.0, 11 M20 = 1.0,
12 M21 = 1.1 12 M21 = 1.2
13 }; 13 };
14 14
15 [assert_size(4)] 15 [assert_size(4)]
16 enum PP_Flash_BrowserOperations_SettingType { 16 enum PP_Flash_BrowserOperations_SettingType {
17 PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_CAMERAMIC = 0, 17 PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_CAMERAMIC = 0,
18 PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_PEERNETWORKING = 1 18 PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_PEERNETWORKING = 1
19 }; 19 };
20 20
21 [assert_size(4)] 21 [assert_size(4)]
22 enum PP_Flash_BrowserOperations_Permission { 22 enum PP_Flash_BrowserOperations_Permission {
23 // This value is only used with <code>SetSitePermission()</code>. 23 // This value is only used with <code>SetSitePermission()</code>.
24 PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT = 0, 24 PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT = 0,
25 PP_FLASH_BROWSEROPERATIONS_PERMISSION_ALLOW = 1, 25 PP_FLASH_BROWSEROPERATIONS_PERMISSION_ALLOW = 1,
26 PP_FLASH_BROWSEROPERATIONS_PERMISSION_BLOCK = 2, 26 PP_FLASH_BROWSEROPERATIONS_PERMISSION_BLOCK = 2,
27 PP_FLASH_BROWSEROPERATIONS_PERMISSION_ASK = 3 27 PP_FLASH_BROWSEROPERATIONS_PERMISSION_ASK = 3
28 }; 28 };
29 29
30 [assert_size(24)]
31 struct PP_Flash_BrowserOperations_SiteSetting { 30 struct PP_Flash_BrowserOperations_SiteSetting {
32 PP_Var site; 31 cstr_t site;
33 PP_Flash_BrowserOperations_Permission permission; 32 PP_Flash_BrowserOperations_Permission permission;
34 // Makes the size consistent across compilers.
35 int32_t padding;
36 }; 33 };
37 34
38 typedef void PPB_Flash_BrowserOperations_GetSettingsCallback( 35 typedef void PPB_Flash_BrowserOperations_GetSettingsCallback(
39 [inout] mem_t user_data, 36 [inout] mem_t user_data,
40 [in] PP_Bool success, 37 [in] PP_Bool success,
41 [in] PP_Flash_BrowserOperations_Permission default_permission, 38 [in] PP_Flash_BrowserOperations_Permission default_permission,
42 [in] uint32_t site_count, 39 [in] uint32_t site_count,
43 [in, size_is(site_count)] PP_Flash_BrowserOperations_SiteSetting[] sites); 40 [in, size_is(site_count)] PP_Flash_BrowserOperations_SiteSetting[] sites);
44 41
45 /** 42 /**
(...skipping 30 matching lines...) Expand all
76 /** 73 /**
77 * Requests the plugin to deauthorize content licenses. It prevents Flash from 74 * Requests the plugin to deauthorize content licenses. It prevents Flash from
78 * playing protected content, such as movies and music the user may have 75 * playing protected content, such as movies and music the user may have
79 * rented or purchased. 76 * rented or purchased.
80 * 77 *
81 * @param[in] plugin_data_path String containing the directory where the 78 * @param[in] plugin_data_path String containing the directory where the
82 * plugin settings are stored. 79 * plugin settings are stored.
83 * 80 *
84 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure. 81 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure.
85 */ 82 */
86 [version=1.1] 83 [version=1.2]
87 PP_Bool DeauthorizeContentLicenses([in] str_t plugin_data_path); 84 PP_Bool DeauthorizeContentLicenses([in] str_t plugin_data_path);
88 85
89 /** 86 /**
90 * Gets permission settings. <code>callback</code> will be called exactly once 87 * Gets permission settings. <code>callback</code> will be called exactly once
91 * to return the settings. 88 * to return the settings.
92 * 89 *
93 * @param[in] plugin_data_path String containing the directory where the 90 * @param[in] plugin_data_path String containing the directory where the
94 * plugin settings are stored. 91 * plugin settings are stored.
95 * @param[in] setting_type What type of setting to retrieve. 92 * @param[in] setting_type What type of setting to retrieve.
96 * @param[in] callback The callback to return retrieved data. 93 * @param[in] callback The callback to return retrieved data.
97 * @param[inout] user_data An opaque pointer that will be passed to 94 * @param[inout] user_data An opaque pointer that will be passed to
98 * <code>callback</code>. 95 * <code>callback</code>.
99 */ 96 */
100 [version=1.1] 97 [version=1.2]
101 void GetPermissionSettings( 98 void GetPermissionSettings(
102 [in] str_t plugin_data_path, 99 [in] str_t plugin_data_path,
103 [in] PP_Flash_BrowserOperations_SettingType setting_type, 100 [in] PP_Flash_BrowserOperations_SettingType setting_type,
104 [in] PPB_Flash_BrowserOperations_GetSettingsCallback callback, 101 [in] PPB_Flash_BrowserOperations_GetSettingsCallback callback,
105 [inout] mem_t user_data); 102 [inout] mem_t user_data);
106 103
107 /** 104 /**
108 * Sets default permission. It applies to all sites except those with 105 * Sets default permission. It applies to all sites except those with
109 * site-specific settings. 106 * site-specific settings.
110 * 107 *
111 * @param[in] plugin_data_path String containing the directory where the 108 * @param[in] plugin_data_path String containing the directory where the
112 * plugin settings are stored. 109 * plugin settings are stored.
113 * @param[in] setting_type What type of setting to set. 110 * @param[in] setting_type What type of setting to set.
114 * @param[in] permission The default permission. 111 * @param[in] permission The default permission.
115 * @param[in] clear_site_specific Whether to remove all site-specific 112 * @param[in] clear_site_specific Whether to remove all site-specific
116 * settings. 113 * settings.
117 * 114 *
118 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure. 115 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure.
119 */ 116 */
120 [version=1.1] 117 [version=1.2]
121 PP_Bool SetDefaultPermission( 118 PP_Bool SetDefaultPermission(
122 [in] str_t plugin_data_path, 119 [in] str_t plugin_data_path,
123 [in] PP_Flash_BrowserOperations_SettingType setting_type, 120 [in] PP_Flash_BrowserOperations_SettingType setting_type,
124 [in] PP_Flash_BrowserOperations_Permission permission, 121 [in] PP_Flash_BrowserOperations_Permission permission,
125 [in] PP_Bool clear_site_specific); 122 [in] PP_Bool clear_site_specific);
126 123
127 /** 124 /**
128 * Sets site-specific permission. If a site has already got site-specific 125 * Sets site-specific permission. If a site has already got site-specific
129 * permission and it is not in <code>sites</code>, it won't be affected. 126 * permission and it is not in <code>sites</code>, it won't be affected.
130 * 127 *
131 * @param[in] plugin_data_path String containing the directory where the 128 * @param[in] plugin_data_path String containing the directory where the
132 * plugin settings are stored. 129 * plugin settings are stored.
133 * @param[in] setting_type What type of setting to set. 130 * @param[in] setting_type What type of setting to set.
134 * @param[in] site_count How many items are there in <code>sites</code>. 131 * @param[in] site_count How many items are there in <code>sites</code>.
135 * @param[in] sites The site-specific settings. If a site is specified with 132 * @param[in] sites The site-specific settings. If a site is specified with
136 * <code>PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT</code> permission, it 133 * <code>PP_FLASH_BROWSEROPERATIONS_PERMISSION_DEFAULT</code> permission, it
137 * will be removed from the site-specific list. 134 * will be removed from the site-specific list.
138 * 135 *
139 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure. 136 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure.
140 */ 137 */
141 [version=1.1] 138 [version=1.2]
142 PP_Bool SetSitePermission( 139 PP_Bool SetSitePermission(
143 [in] str_t plugin_data_path, 140 [in] str_t plugin_data_path,
144 [in] PP_Flash_BrowserOperations_SettingType setting_type, 141 [in] PP_Flash_BrowserOperations_SettingType setting_type,
145 [in] uint32_t site_count, 142 [in] uint32_t site_count,
146 [in, size_is(site_count)] PP_Flash_BrowserOperations_SiteSetting[] sites); 143 [in, size_is(site_count)] PP_Flash_BrowserOperations_SiteSetting[] sites);
147 }; 144 };
OLDNEW
« no previous file with comments | « ppapi/api/pp_stdint.idl ('k') | ppapi/c/private/ppp_flash_browser_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698