| Index: chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.h b/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| index 986db447b8ea8236ad0b485deef9b20aeea28a36..b02ac4bba5c69be63af54082d3ba9b7ca40a9b03 100644
|
| --- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| +++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
|
| @@ -37,6 +37,7 @@ namespace developer_private {
|
|
|
| struct ItemInfo;
|
| struct ItemInspectView;
|
| +struct ProjectInfo;
|
|
|
| }
|
|
|
| @@ -47,6 +48,7 @@ struct ItemInspectView;
|
| namespace developer = extensions::api::developer_private;
|
|
|
| typedef std::vector<linked_ptr<developer::ItemInfo> > ItemInfoList;
|
| +typedef std::vector<linked_ptr<developer::ProjectInfo> > ProjectInfoList;
|
| typedef std::vector<linked_ptr<developer::ItemInspectView> >
|
| ItemInspectViewList;
|
|
|
| @@ -368,6 +370,53 @@ class DeveloperPrivateExportSyncfsFolderToLocalfsFunction
|
| scoped_refptr<fileapi::FileSystemContext> context_;
|
| };
|
|
|
| +class DeveloperPrivateLoadProjectToSyncfsFunction
|
| + : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("developerPrivate.loadProjectToSyncfs",
|
| + DEVELOPERPRIVATE_LOADPROJECTTOSYNCFS);
|
| +
|
| + DeveloperPrivateLoadProjectToSyncfsFunction();
|
| +
|
| + protected:
|
| + virtual ~DeveloperPrivateLoadProjectToSyncfsFunction();
|
| +
|
| + // ExtensionFunction
|
| + virtual bool RunImpl() OVERRIDE;
|
| +};
|
| +
|
| +class DeveloperPrivateGetProjectsInfoFunction : public AsyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("developerPrivate.getProjectsInfo",
|
| + DEVELOPERPRIVATE_GETPROJECTSINFO);
|
| +
|
| + DeveloperPrivateGetProjectsInfoFunction();
|
| +
|
| + protected:
|
| + virtual ~DeveloperPrivateGetProjectsInfoFunction();
|
| +
|
| + void ReadFolder();
|
| +
|
| + // ExtensionFunction
|
| + virtual bool RunImpl() OVERRIDE;
|
| +};
|
| +
|
| +class DeveloperPrivateLoadProjectFunction : public SyncExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("developerPrivate.loadProject",
|
| + DEVELOPERPRIVATE_LOADPROJECT);
|
| +
|
| + DeveloperPrivateLoadProjectFunction();
|
| +
|
| + protected:
|
| + virtual ~DeveloperPrivateLoadProjectFunction();
|
| +
|
| + // ExtensionFunction
|
| + virtual bool RunImpl() OVERRIDE;
|
| +};
|
| +
|
| +
|
| +
|
| } // namespace api
|
|
|
| } // namespace extensions
|
|
|