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

Side by Side Diff: ppapi/c/private/ppp_flash_browser_operations.h

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/private/ppp_flash_browser_operations.idl ('k') | ppapi/generators/idl_c_proto.py » ('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 /* From private/ppp_flash_browser_operations.idl, 6 /* From private/ppp_flash_browser_operations.idl,
7 * modified Thu Jun 7 10:43:20 2012. 7 * modified Fri Jun 15 17:00:18 2012.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ 10 #ifndef PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
11 #define PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ 11 #define PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
12 12
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_var.h"
17 16
18 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0 \ 17 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0 \
19 "PPP_Flash_BrowserOperations;1.0" 18 "PPP_Flash_BrowserOperations;1.0"
20 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_1 \ 19 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_2 \
21 "PPP_Flash_BrowserOperations;1.1" 20 "PPP_Flash_BrowserOperations;1.2"
22 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE \ 21 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE \
23 PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_1 22 PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_2
24 23
25 /** 24 /**
26 * @file 25 * @file
27 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface. 26 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface.
28 */ 27 */
29 28
30 29
31 /** 30 /**
32 * @addtogroup Enums 31 * @addtogroup Enums
33 * @{ 32 * @{
(...skipping 14 matching lines...) Expand all
48 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Flash_BrowserOperations_Permission, 4); 47 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Flash_BrowserOperations_Permission, 4);
49 /** 48 /**
50 * @} 49 * @}
51 */ 50 */
52 51
53 /** 52 /**
54 * @addtogroup Structs 53 * @addtogroup Structs
55 * @{ 54 * @{
56 */ 55 */
57 struct PP_Flash_BrowserOperations_SiteSetting { 56 struct PP_Flash_BrowserOperations_SiteSetting {
58 struct PP_Var site; 57 const char* site;
59 PP_Flash_BrowserOperations_Permission permission; 58 PP_Flash_BrowserOperations_Permission permission;
60 /* Makes the size consistent across compilers. */
61 int32_t padding;
62 }; 59 };
63 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Flash_BrowserOperations_SiteSetting, 2 4);
64 /** 60 /**
65 * @} 61 * @}
66 */ 62 */
67 63
68 /** 64 /**
69 * @addtogroup Typedefs 65 * @addtogroup Typedefs
70 * @{ 66 * @{
71 */ 67 */
72 typedef void (*PPB_Flash_BrowserOperations_GetSettingsCallback)( 68 typedef void (*PPB_Flash_BrowserOperations_GetSettingsCallback)(
73 void* user_data, 69 void* user_data,
74 PP_Bool success, 70 PP_Bool success,
75 PP_Flash_BrowserOperations_Permission default_permission, 71 PP_Flash_BrowserOperations_Permission default_permission,
76 uint32_t site_count, 72 uint32_t site_count,
77 const struct PP_Flash_BrowserOperations_SiteSetting sites[]); 73 const struct PP_Flash_BrowserOperations_SiteSetting sites[]);
78 /** 74 /**
79 * @} 75 * @}
80 */ 76 */
81 77
82 /** 78 /**
83 * @addtogroup Interfaces 79 * @addtogroup Interfaces
84 * @{ 80 * @{
85 */ 81 */
86 /** 82 /**
87 * This interface allows the browser to request the plugin do things. 83 * This interface allows the browser to request the plugin do things.
88 */ 84 */
89 struct PPP_Flash_BrowserOperations_1_1 { 85 struct PPP_Flash_BrowserOperations_1_2 {
90 /** 86 /**
91 * This function allows the plugin to implement the "Clear site data" feature. 87 * This function allows the plugin to implement the "Clear site data" feature.
92 * 88 *
93 * @plugin_data_path String containing the directory where the plugin data is 89 * @plugin_data_path String containing the directory where the plugin data is
94 * stored. On UTF16 systems (Windows), this will be encoded as UTF-8. It will 90 * stored. On UTF16 systems (Windows), this will be encoded as UTF-8. It will
95 * be an absolute path and will not have a directory separator (slash) at the 91 * be an absolute path and will not have a directory separator (slash) at the
96 * end. 92 * end.
97 * 93 *
98 * @arg site String specifying which site to clear the data for. This will 94 * @arg site String specifying which site to clear the data for. This will
99 * be null to clear data for all sites. 95 * be null to clear data for all sites.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 * 168 *
173 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure. 169 * @return <code>PP_TRUE</code> on success, <code>PP_FALSE</code> on failure.
174 */ 170 */
175 PP_Bool (*SetSitePermission)( 171 PP_Bool (*SetSitePermission)(
176 const char* plugin_data_path, 172 const char* plugin_data_path,
177 PP_Flash_BrowserOperations_SettingType setting_type, 173 PP_Flash_BrowserOperations_SettingType setting_type,
178 uint32_t site_count, 174 uint32_t site_count,
179 const struct PP_Flash_BrowserOperations_SiteSetting sites[]); 175 const struct PP_Flash_BrowserOperations_SiteSetting sites[]);
180 }; 176 };
181 177
182 typedef struct PPP_Flash_BrowserOperations_1_1 PPP_Flash_BrowserOperations; 178 typedef struct PPP_Flash_BrowserOperations_1_2 PPP_Flash_BrowserOperations;
183 179
184 struct PPP_Flash_BrowserOperations_1_0 { 180 struct PPP_Flash_BrowserOperations_1_0 {
185 PP_Bool (*ClearSiteData)(const char* plugin_data_path, 181 PP_Bool (*ClearSiteData)(const char* plugin_data_path,
186 const char* site, 182 const char* site,
187 uint64_t flags, 183 uint64_t flags,
188 uint64_t max_age); 184 uint64_t max_age);
189 }; 185 };
190 /** 186 /**
191 * @} 187 * @}
192 */ 188 */
193 189
194 #endif /* PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ */ 190 #endif /* PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ */
195 191
OLDNEW
« no previous file with comments | « ppapi/api/private/ppp_flash_browser_operations.idl ('k') | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698