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

Side by Side Diff: ppapi/api/private/ppp_flash_browser_operations.idl

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser tests 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
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 /**
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698