| Index: ppapi/c/private/ppp_flash_clear_site_data.h
|
| diff --git a/ppapi/c/private/ppp_flash_clear_site_data.h b/ppapi/c/private/ppp_flash_clear_site_data.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a7e1597121bc1ac81dadb04f890310e037866956
|
| --- /dev/null
|
| +++ b/ppapi/c/private/ppp_flash_clear_site_data.h
|
| @@ -0,0 +1,57 @@
|
| +/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* From private/ppp_flash_clear_site_data.idl,
|
| + * modified Wed Apr 4 13:45:59 2012.
|
| + */
|
| +
|
| +#ifndef PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_
|
| +#define PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_
|
| +
|
| +#include "ppapi/c/pp_macros.h"
|
| +#include "ppapi/c/pp_stdint.h"
|
| +
|
| +#define PPP_FLASH_CLEARSITEDATA_INTERFACE_1_0 "PPP_Flash_ClearSiteData;1.0"
|
| +#define PPP_FLASH_CLEARSITEDATA_INTERFACE PPP_FLASH_CLEARSITEDATA_INTERFACE_1_0
|
| +
|
| +/**
|
| + * @file
|
| + * This file contains the <code>PPP_Flash_ClearSiteData</code> interface.
|
| + */
|
| +
|
| +
|
| +/**
|
| + * @addtogroup Interfaces
|
| + * @{
|
| + */
|
| +/**
|
| + * This interface allows the browser to request the plugin to clear site data.
|
| + */
|
| +struct PPP_Flash_ClearSiteData_1_0 {
|
| + /**
|
| + * This function allows the plugin to implement the "Clear site data" feature.
|
| + *
|
| + * @arg site String specifying which site to clear the data for. This will
|
| + * be null to clear data for all sites.
|
| + *
|
| + * @arg flags Currently always 0 in Chrome to clear all data. This may be
|
| + * extended in the future to clear only specific types of data.
|
| + *
|
| + * @arg max_age The maximum age in seconds to clear data for. This allows the
|
| + * plugin to implement "clear past hour" and "clear past data", etc.
|
| + *
|
| + * See also the NPP_ClearSiteData function in NPAPI.
|
| + * https://wiki.mozilla.org/NPAPI:ClearSiteData
|
| + */
|
| + void (*ClearSiteData)(const char* site, uint64_t flags, uint64_t max_age);
|
| +};
|
| +
|
| +typedef struct PPP_Flash_ClearSiteData_1_0 PPP_Flash_ClearSiteData;
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +#endif /* PPAPI_C_PRIVATE_PPP_FLASH_CLEAR_SITE_DATA_H_ */
|
| +
|
|
|