| 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..bca0c7694757cc1894af4378d4d836289dd8c59b 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,19 @@
|
| #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 DataItem;
|
| +} // namespace lock_screen_data
|
| +
|
| class LockScreenDataCreateFunction : public UIThreadExtensionFunction {
|
| public:
|
| LockScreenDataCreateFunction();
|
| @@ -19,6 +27,9 @@ class LockScreenDataCreateFunction : public UIThreadExtensionFunction {
|
|
|
| ResponseAction Run() override;
|
|
|
| + void OnDone(lock_screen_data::OperationResult result,
|
| + const lock_screen_data::DataItem* item);
|
| +
|
| DECLARE_EXTENSION_FUNCTION("lockScreen.data.create", LOCKSCREENDATA_CREATE);
|
| DISALLOW_COPY_AND_ASSIGN(LockScreenDataCreateFunction);
|
| };
|
| @@ -32,6 +43,8 @@ class LockScreenDataGetAllFunction : public UIThreadExtensionFunction {
|
|
|
| ResponseAction Run() override;
|
|
|
| + void OnDone(const std::vector<const lock_screen_data::DataItem*>& items);
|
| +
|
| DECLARE_EXTENSION_FUNCTION("lockScreen.data.getAll", LOCKSCREENDATA_GETALL);
|
| DISALLOW_COPY_AND_ASSIGN(LockScreenDataGetAllFunction);
|
| };
|
| @@ -45,6 +58,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 +75,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);
|
| @@ -73,6 +91,8 @@ class LockScreenDataDeleteFunction : public UIThreadExtensionFunction {
|
|
|
| ResponseAction Run() override;
|
|
|
| + void OnDone(lock_screen_data::OperationResult result);
|
| +
|
| DECLARE_EXTENSION_FUNCTION("lockScreen.data.delete", LOCKSCREENDATA_DELETE);
|
|
|
| DISALLOW_COPY_AND_ASSIGN(LockScreenDataDeleteFunction);
|
|
|