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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppp_flash_browser_operations.h
diff --git a/ppapi/c/private/ppp_flash_browser_operations.h b/ppapi/c/private/ppp_flash_browser_operations.h
new file mode 100644
index 0000000000000000000000000000000000000000..86663191adf33f3ba5e01d9beb33c11d25583bf0
--- /dev/null
+++ b/ppapi/c/private/ppp_flash_browser_operations.h
@@ -0,0 +1,68 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* From private/ppp_flash_browser_operations.idl,
+ * modified Thu Apr 5 20:54:09 2012.
+ */
+
+#ifndef PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
+#define PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_
+
+#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0 \
+ "PPP_Flash_BrowserOperations;1.0"
+#define PPP_FLASH_BROWSEROPERATIONS_INTERFACE \
+ PPP_FLASH_BROWSEROPERATIONS_INTERFACE_1_0
+
+/**
+ * @file
+ * This file contains the <code>PPP_Flash_BrowserOperations</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * This interface allows the browser to request the plugin do things.
+ */
+struct PPP_Flash_BrowserOperations_1_0 {
+ /**
+ * This function allows the plugin to implement the "Clear site data" feature.
+ *
+ * @profile_dir String containing the directory of the profile. On UTF-16
+ * systems (Windows), this will be encoded as UTF-8.
+ *
+ * @arg site String specifying which site to clear the data for. This will
+ * be null to clear data for all sites.
+ *
+ * @arg flags Currently always 0 in Chrome to clear all data. This may be
+ * extended in the future to clear only specific types of data.
+ *
+ * @arg max_age The maximum age in seconds to clear data for. This allows the
+ * plugin to implement "clear past hour" and "clear past data", etc.
+ *
+ * @return PP_TRUE on success, PP_FALSE on failure.
+ *
+ * See also the NPP_ClearSiteData function in NPAPI.
+ * https://wiki.mozilla.org/NPAPI:ClearSiteData
+ */
+ PP_Bool (*ClearSiteData)(const char* profile_dir,
+ const char* site,
+ uint64_t flags,
+ uint64_t max_age);
+};
+
+typedef struct PPP_Flash_BrowserOperations_1_0 PPP_Flash_BrowserOperations;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPP_FLASH_BROWSER_OPERATIONS_H_ */
+

Powered by Google App Engine
This is Rietveld 408576698