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

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: 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 of the profile. On UTF-16
Bernhard Bauer 2012/04/10 20:13:44 Could we change this to mean the directory contain
22 * systems (Windows), this will be encoded as UTF-8.
23 *
24 * @arg site String specifying which site to clear the data for. This will
25 * be null to clear data for all sites.
26 *
27 * @arg flags Currently always 0 in Chrome to clear all data. This may be
28 * extended in the future to clear only specific types of data.
29 *
30 * @arg max_age The maximum age in seconds to clear data for. This allows the
31 * plugin to implement "clear past hour" and "clear past data", etc.
32 *
33 * @return PP_TRUE on success, PP_FALSE on failure.
34 *
35 * See also the NPP_ClearSiteData function in NPAPI.
36 * https://wiki.mozilla.org/NPAPI:ClearSiteData
37 */
38 PP_Bool ClearSiteData(str_t profile_dir,
39 str_t site,
40 uint64_t flags,
41 uint64_t max_age);
42 };
43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698