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

Unified Diff: extensions/browser/api/web_view/web_view_internal_api.h

Issue 567643002: Moving cleardata extension function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: extensions/browser/api/web_view/web_view_internal_api.h
diff --git a/extensions/browser/api/web_view/web_view_internal_api.h b/extensions/browser/api/web_view/web_view_internal_api.h
index 6d9896e5de0d02463dbd71757375205866127507..6eae99fdc74ed648efe0e1cec0f44a603813e034 100644
--- a/extensions/browser/api/web_view/web_view_internal_api.h
+++ b/extensions/browser/api/web_view/web_view_internal_api.h
@@ -321,6 +321,34 @@ class WebViewInternalTerminateFunction
DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction);
};
+class WebViewInternalClearDataFunction
+ : public WebViewInternalExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.clearData",
+ WEBVIEWINTERNAL_CLEARDATA);
+
+ WebViewInternalClearDataFunction();
+
+ protected:
+ virtual ~WebViewInternalClearDataFunction();
+
+ private:
+ // WebViewInternalExtensionFunction implementation.
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
+
+ uint32 GetRemovalMask();
+ void ClearDataDone();
+
+ // Removal start time.
+ base::Time remove_since_;
+ // Removal mask, corresponds to StoragePartition::RemoveDataMask enum.
+ uint32 remove_mask_;
+ // Tracks any data related or parse errors.
+ bool bad_message_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction);
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
« no previous file with comments | « chrome/renderer/resources/extensions/web_view.js ('k') | extensions/browser/api/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698