Chromium Code Reviews| 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 02:48:10
I think you should call it "plugin_data_dir" or so
| |
| 22 * stored. On UTF16 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 | |
| OLD | NEW |