Index: extensions/browser/api/lock_screen_data/lock_screen_data_api.h |
diff --git a/extensions/browser/api/lock_screen_data/lock_screen_data_api.h b/extensions/browser/api/lock_screen_data/lock_screen_data_api.h |
index 83c75f62538cf51eb83ea52f8b92209aee3b236c..d92049cd4442d6f78fd89f444d6aeb4b5b572622 100644 |
--- a/extensions/browser/api/lock_screen_data/lock_screen_data_api.h |
+++ b/extensions/browser/api/lock_screen_data/lock_screen_data_api.h |
@@ -5,11 +5,18 @@ |
#ifndef EXTENSIONS_BROWSER_API_LOCK_SCREEN_DATA_LOCK_SCREEN_DATA_API_H_ |
#define EXTENSIONS_BROWSER_API_LOCK_SCREEN_DATA_LOCK_SCREEN_DATA_API_H_ |
+#include <memory> |
+#include <vector> |
+ |
#include "base/macros.h" |
#include "extensions/browser/extension_function.h" |
namespace extensions { |
+namespace lock_screen_data { |
+enum class OperationResult; |
+} |
+ |
class LockScreenDataCreateFunction : public UIThreadExtensionFunction { |
public: |
LockScreenDataCreateFunction(); |
@@ -45,6 +52,9 @@ class LockScreenDataGetContentFunction : public UIThreadExtensionFunction { |
ResponseAction Run() override; |
+ void OnDone(lock_screen_data::OperationResult result, |
+ std::unique_ptr<std::vector<char>> data); |
+ |
DECLARE_EXTENSION_FUNCTION("lockScreen.data.getContent", |
LOCKSCREENDATA_GETCONTENT); |
DISALLOW_COPY_AND_ASSIGN(LockScreenDataGetContentFunction); |
@@ -59,6 +69,8 @@ class LockScreenDataSetContentFunction : public UIThreadExtensionFunction { |
ResponseAction Run() override; |
+ void OnDone(lock_screen_data::OperationResult result); |
+ |
DECLARE_EXTENSION_FUNCTION("lockScreen.data.setContent", |
LOCKSCREENDATA_SETCONTENT); |
DISALLOW_COPY_AND_ASSIGN(LockScreenDataSetContentFunction); |