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

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

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_browser_operations.idl,
7 * modified Wed Apr 11 16:26:42 2012.
8 */
9
10 #ifndef PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
11 #define PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
12
13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_stdint.h"
16
17 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0 \
18 "PPP_Flash_BrowserOperations;1.0"
19 #define PPP_FLASH_BROWSEROPERATIONS_INTERFACE \
20 PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0
21
22 /**
23 * @file
24 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface.
25 */
26
27
28 /**
29 * @addtogroup Interfaces
30 * @{
31 */
32 /**
33 * This interface allows the browser to request the plugin do things.
34 */
35 struct PPP_Flash_BrowserOperations_1_0 {
36 /**
37 * This function allows the plugin to implement the "Clear site data" feature.
38 *
39 * @plugin_data_path String containing the directory where the plugin data is
40 * stored. On UTF16 systems (Windows), this will be encoded as UTF-8. It will
41 * be an absolute path and will not have a directory separator (slash) at the
42 * end.
43 *
44 * @arg site String specifying which site to clear the data for. This will
45 * be null to clear data for all sites.
46 *
47 * @arg flags Currently always 0 in Chrome to clear all data. This may be
48 * extended in the future to clear only specific types of data.
49 *
50 * @arg max_age The maximum age in seconds to clear data for. This allows the
51 * plugin to implement "clear past hour" and "clear past data", etc.
52 *
53 * @return PP_TRUE on success, PP_FALSE on failure.
54 *
55 * See also the NPP_ClearSiteData function in NPAPI.
56 * https://wiki.mozilla.org/NPAPI:ClearSiteData
57 */
58 PP_Bool (*ClearSiteData)(const char* plugin_data_path,
59 const char* site,
60 uint64_t flags,
61 uint64_t max_age);
62 };
63
64 typedef struct PPP_Flash_BrowserOperations_1_0 PPP_Flash_BrowserOperations;
65 /**
66 * @}
67 */
68
69 #endif /* PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ */
70
OLDNEW
« no previous file with comments | « ppapi/api/private/ppp_flash_browser_operations.idl ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698