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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 13885007: Add API to load a unpacked project to developerPrivate. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 8 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/developer_private/developer_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698