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

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

Issue 14232018: Add API to load project from localfs into syncfs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@load_api
Patch Set: . 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 b02ac4bba5c69be63af54082d3ba9b7ca40a9b03..4e271422d5f590b2fced7ffc0ed5288801fd3434 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
@@ -383,6 +383,23 @@ class DeveloperPrivateLoadProjectToSyncfsFunction
// ExtensionFunction
virtual bool RunImpl() OVERRIDE;
+
+ void CopyFolder(const base::FilePath::StringType& project_name);
+
+ void CopyFiles(const std::vector<base::FilePath>& paths);
+
+ void CopyFilesCallback(const base::PlatformFileError result);
+
+ private:
+ // Number of pending copy files callbacks.
+ // It should only be modified on the IO Thread.
+ int pendingCallbacksCount_;
+
+ // True only when all the copyFiles job are successful.
+ // It should only be modified on the IO thread.
+ bool success_;
+
+ scoped_refptr<fileapi::FileSystemContext> context_;
};
class DeveloperPrivateGetProjectsInfoFunction : public AsyncExtensionFunction {
@@ -415,8 +432,6 @@ class DeveloperPrivateLoadProjectFunction : public SyncExtensionFunction {
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