OLD | NEW |
(Empty) | |
| 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 |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From private/ppp_flash_clear_site_data.idl, |
| 7 * modified Wed Apr 4 13:45:59 2012. |
| 8 */ |
| 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_ |
| 11 #define PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_ |
| 12 |
| 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_stdint.h" |
| 15 |
| 16 #define PPP_FLASH_CLEARSITEDATA_INTERFACE_1_0 "PPP_Flash_ClearSiteData;1.0" |
| 17 #define PPP_FLASH_CLEARSITEDATA_INTERFACE PPP_FLASH_CLEARSITEDATA_INTERFACE_1_0 |
| 18 |
| 19 /** |
| 20 * @file |
| 21 * This file contains the <code>PPP_Flash_ClearSiteData</code> interface. |
| 22 */ |
| 23 |
| 24 |
| 25 /** |
| 26 * @addtogroup Interfaces |
| 27 * @{ |
| 28 */ |
| 29 /** |
| 30 * This interface allows the browser to request the plugin to clear site data. |
| 31 */ |
| 32 struct PPP_Flash_ClearSiteData_1_0 { |
| 33 /** |
| 34 * This function allows the plugin to implement the "Clear site data" feature. |
| 35 * |
| 36 * @arg site String specifying which site to clear the data for. This will |
| 37 * be null to clear data for all sites. |
| 38 * |
| 39 * @arg flags Currently always 0 in Chrome to clear all data. This may be |
| 40 * extended in the future to clear only specific types of data. |
| 41 * |
| 42 * @arg max_age The maximum age in seconds to clear data for. This allows the |
| 43 * plugin to implement "clear past hour" and "clear past data", etc. |
| 44 * |
| 45 * See also the NPP_ClearSiteData function in NPAPI. |
| 46 * https://wiki.mozilla.org/NPAPI:ClearSiteData |
| 47 */ |
| 48 void (*ClearSiteData)(const char* site, uint64_t flags, uint64_t max_age); |
| 49 }; |
| 50 |
| 51 typedef struct PPP_Flash_ClearSiteData_1_0 PPP_Flash_ClearSiteData; |
| 52 /** |
| 53 * @} |
| 54 */ |
| 55 |
| 56 #endif /* PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_ */ |
| 57 |
OLD | NEW |