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 /** | |
7 * This file contains the <code>PPP_Flash_BrowserOperations</code> interface. | |
8 */ | |
9 | |
10 label Chrome { | |
11 M20 = 1.0 | |
12 }; | |
13 | |
14 /** | |
15 * This interface allows the browser to request the plugin do things. | |
16 */ | |
17 interface PPP_Flash_BrowserOperations { | |
18 /** | |
19 * This function allows the plugin to implement the "Clear site data" feature. | |
20 * | |
21 * @profile_dir String containing the directory where the plugin data is | |
viettrungluu
2012/04/11 23:25:27
You forgot to update the docs.
| |
22 * stored. On UTF16 systems (Windows), this will be encoded as UTF-8. It will | |
23 * be an absolute path and will not have a directory separator (slash) at the | |
24 * end. | |
25 * | |
26 * @arg site String specifying which site to clear the data for. This will | |
27 * be null to clear data for all sites. | |
28 * | |
29 * @arg flags Currently always 0 in Chrome to clear all data. This may be | |
30 * extended in the future to clear only specific types of data. | |
31 * | |
32 * @arg max_age The maximum age in seconds to clear data for. This allows the | |
33 * plugin to implement "clear past hour" and "clear past data", etc. | |
34 * | |
35 * @return PP_TRUE on success, PP_FALSE on failure. | |
36 * | |
37 * See also the NPP_ClearSiteData function in NPAPI. | |
38 * https://wiki.mozilla.org/NPAPI:ClearSiteData | |
39 */ | |
40 PP_Bool ClearSiteData(str_t plugin_data_path, | |
41 str_t site, | |
42 uint64_t flags, | |
43 uint64_t max_age); | |
44 }; | |
45 | |
OLD | NEW |