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

Side by Side Diff: chrome/common/extensions/api/developer_private.idl

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // developerPrivate API. 5 // developerPrivate API.
6 // This is a private API exposing developing and debugging functionalities for 6 // This is a private API exposing developing and debugging functionalities for
7 // apps and extensions. 7 // apps and extensions.
8 8
9 namespace developerPrivate { 9 namespace developerPrivate {
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Unpacked items's path. 91 // Unpacked items's path.
92 DOMString item_path; 92 DOMString item_path;
93 93
94 // Permanent key path. 94 // Permanent key path.
95 DOMString pem_path; 95 DOMString pem_path;
96 96
97 long override_flags; 97 long override_flags;
98 PackStatus status; 98 PackStatus status;
99 }; 99 };
100 100
101 dictionary ProjectInfo {
102 DOMString name;
103 };
104
101 callback VoidCallback = void (); 105 callback VoidCallback = void ();
102 callback BooleanCallback = void (boolean result); 106 callback BooleanCallback = void (boolean result);
103 callback ItemsInfoCallback = void (ItemInfo[] result); 107 callback ItemsInfoCallback = void (ItemInfo[] result);
104 callback GetStringsCallback = void (object result); 108 callback GetStringsCallback = void (object result);
109 callback GetProjectsInfoCallback = void (ProjectInfo[] result);
105 callback PathCallback = void (DOMString path); 110 callback PathCallback = void (DOMString path);
106 callback PackCallback = void (PackDirectoryResponse response); 111 callback PackCallback = void (PackDirectoryResponse response);
107 callback VoidCallback = void(); 112 callback VoidCallback = void();
108 113
109 interface Functions { 114 interface Functions {
110 // Runs auto update for extensions and apps immediately. 115 // Runs auto update for extensions and apps immediately.
111 // |callback| : Called with the boolean result, true if autoUpdate is 116 // |callback| : Called with the boolean result, true if autoUpdate is
112 // successful. 117 // successful.
113 static void autoUpdate(BooleanCallback callback); 118 static void autoUpdate(BooleanCallback callback);
114 119
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 boolean allow, 154 boolean allow,
150 VoidCallback callback); 155 VoidCallback callback);
151 156
152 // Load a user selected unpacked item 157 // Load a user selected unpacked item
153 static void loadUnpacked(optional VoidCallback callback); 158 static void loadUnpacked(optional VoidCallback callback);
154 159
155 // Copies the syncfs folder for the extension to local disk. 160 // Copies the syncfs folder for the extension to local disk.
156 static void exportSyncfsFolderToLocalfs(DOMString folder_name, 161 static void exportSyncfsFolderToLocalfs(DOMString folder_name,
157 optional VoidCallback callback); 162 optional VoidCallback callback);
158 163
164 // Gets the list of projects with metadata.
165 static void getProjectsInfo(GetProjectsInfoCallback callback);
166
167 // Loads a given |project_name| into the syncfs.
168 static void loadProjectToSyncfs(DOMString project_name,
169 optional VoidCallback callback);
kinuko 2013/04/18 08:15:12 nit: indent
Gaurav 2013/04/18 23:08:46 Done.
170
171 // Loads the unpacked app / extension.
172 static void loadProject(DOMString project_name,
173 optional VoidCallback callback);
174
159 // Open Dialog to browse to an entry. 175 // Open Dialog to browse to an entry.
160 // |select_type| : Select a file or a folder. 176 // |select_type| : Select a file or a folder.
161 // |file_type| : Required file type. For Example pem type is for private 177 // |file_type| : Required file type. For Example pem type is for private
162 // key and load type is for an unpacked item. 178 // key and load type is for an unpacked item.
163 // |callback| : called with selected item's path. 179 // |callback| : called with selected item's path.
164 static void choosePath(SelectType select_type, 180 static void choosePath(SelectType select_type,
165 FileType file_type, 181 FileType file_type,
166 PathCallback callback); 182 PathCallback callback);
167 183
168 // Pack an item with given |path| and |private_key_path| 184 // Pack an item with given |path| and |private_key_path|
169 // |callback| : called with the success result string. 185 // |callback| : called with the success result string.
170 static void packDirectory(DOMString path, 186 static void packDirectory(DOMString path,
171 DOMString private_key_path, 187 DOMString private_key_path,
172 long flags, 188 long flags,
173 PackCallback callback); 189 PackCallback callback);
174 190
175 // Gets localized translated strings for apps_debugger. It returns the 191 // Gets localized translated strings for apps_debugger. It returns the
176 // strings as a dictionary mapping from string identifier to the 192 // strings as a dictionary mapping from string identifier to the
177 // translated string to use in the apps_debugger app UI. 193 // translated string to use in the apps_debugger app UI.
178 static void getStrings(GetStringsCallback callback); 194 static void getStrings(GetStringsCallback callback);
179 }; 195 };
180 196
181 }; 197 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698