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

Unified Diff: chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.h

Issue 1048113003: Implementation of API to clear savings data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ClearSavingsData
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.h
diff --git a/chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.h b/chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..52a3d50468e13deaf23ed7a74f543f2407b06a86
--- /dev/null
+++ b/chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.h
@@ -0,0 +1,35 @@
+// TODO: Insert description here. (generated by kundaji)
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_API_H_
+
+#include "extensions/browser/extension_function.h"
+
+//namespace data_reduction_proxy_api {
+// base::Callback<void()> ClearCallback = base::Callback<void()>();
+//
+// interface Functions {
+// static void clear(ClearCallback callback);
+// };
+//
+//}; // namespace data_reduction_proxy_api
+
+
+namespace extensions {
+
+class DataReductionProxyClearAPIFunction : public UIThreadExtensionFunction {
+
+
+ private:
+ ~DataReductionProxyClearAPIFunction() override {};
+
+ DECLARE_EXTENSION_FUNCTION("dataReductionProxy.dataSavings.clear",
+ DATAREDUCTIONPROXY_DATASAVINGS_CLEAR)
+
+ ResponseAction Run() override;
+};
+
+} // namespace extensions
+
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_DATA_REDUCTION_PROXY_DATA_REDUCTION_PROXY_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/data_reduction_proxy/data_reduction_proxy_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698