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

Side by Side Diff: chrome/common/extensions/api/fileBrowserPrivate.json

Issue 9720020: [COPY] - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/file_manager/js/directory_model.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [ 5 [
6 { 6 {
7 "namespace":"fileBrowserPrivate", 7 "namespace":"fileBrowserPrivate",
8 "nodoc": "true", 8 "nodoc": "true",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 "description": "Path that sourcePath was mounted to." 252 "description": "Path that sourcePath was mounted to."
253 }, 253 },
254 "mountType": { 254 "mountType": {
255 "type": "string", 255 "type": "string",
256 "enum": ["device", "file", "network", "gdata"], 256 "enum": ["device", "file", "network", "gdata"],
257 "description": "Type of the mount." 257 "description": "Type of the mount."
258 } 258 }
259 } 259 }
260 }, 260 },
261 { 261 {
262 "id": "FileTransferStatus",
263 "type": "object",
264 "description": "Payload data for file transfer status updates.",
265 "properties": {
266 "fileUrl": {
267 "type": "string",
268 "description": "URL of file that is being transfered."
269 },
270 "transferState": {
271 "type": "string",
272 "enum": ["started", "in_progress", "completed", "failed"],
273 "description": "File transfer progress state."
274 },
275 "transferType": {
276 "type": "string",
277 "enum": ["upload", "download"],
278 "description": "Defines file transfer direction."
279 },
280 "processed": {
281 "type": "integer",
282 "optional": true,
283 "description": "Completed portion of the transfer operation."
284 },
285 "total": {
286 "type": "integer",
287 "optional": true,
288 "description": "Total size (cost) of transfer operation."
289 }
290 }
291 },
292 {
262 "id": "FileWatchEvent", 293 "id": "FileWatchEvent",
263 "type": "object", 294 "type": "object",
264 "description": "Payload data for disk mount / unmount event.", 295 "description": "Payload data for disk mount / unmount event.",
265 "properties": { 296 "properties": {
266 "eventType": { 297 "eventType": {
267 "type": "string", 298 "type": "string",
268 "enum": ["changed", "error"], 299 "enum": ["changed", "error"],
269 "description": "Specifies type of event that is raised." 300 "description": "Specifies type of event that is raised."
270 }, 301 },
271 "fileUrl": { 302 "fileUrl": {
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 "name" : "mountPoints", 676 "name" : "mountPoints",
646 "type": "array", 677 "type": "array",
647 "items": {"$ref": "MountPointInfo"}, 678 "items": {"$ref": "MountPointInfo"},
648 "description": "The list of MountPointInfo representing mounted devices." 679 "description": "The list of MountPointInfo representing mounted devices."
649 } 680 }
650 ] 681 ]
651 } 682 }
652 ] 683 ]
653 }, 684 },
654 { 685 {
686 "name": "getFileTransfers",
687 "description": "Get the list of ongoing file transfer operations.",
688 "parameters": [
689 {
690 "name": "callback",
691 "type": "function",
692 "parameters": [
693 {
694 "name" : "fileTransfers",
695 "type": "array",
696 "items": {"$ref": "FileTransferStatus"},
697 "description": "The list of FileTransferStatus representing ongo ing file transfers."
698 }
699 ]
700 }
701 ]
702 },
703 {
655 "name": "getSizeStats", 704 "name": "getSizeStats",
656 "description": "Retrieves total and remaining size of a mount point.", 705 "description": "Retrieves total and remaining size of a mount point.",
657 "parameters": [ 706 "parameters": [
658 { 707 {
659 "name": "mountPath", 708 "name": "mountPath",
660 "type": "string", 709 "type": "string",
661 "description": "Mount point path." 710 "description": "Mount point path."
662 }, 711 },
663 { 712 {
664 "name": "callback", 713 "name": "callback",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 "description": "Fired when mount event is detected.", 775 "description": "Fired when mount event is detected.",
727 "parameters": [ 776 "parameters": [
728 { 777 {
729 "$ref": "MountCompletedEvent", 778 "$ref": "MountCompletedEvent",
730 "name": "event", 779 "name": "event",
731 "description": "MountCompleted event information." 780 "description": "MountCompleted event information."
732 } 781 }
733 ] 782 ]
734 }, 783 },
735 { 784 {
785 "name": "onFileTransfersUpdated",
786 "type": "function",
787 "description": "Fired when file transfers with remote file system are in progress.",
788 "parameters": [
789 {
790 "type": "array",
791 "items": {"$ref": "FileTransferStatus"},
792 "name": "event",
793 "description": "List of ongoing file statuses for ongoing transfer o perations."
794 }
795 ]
796 },
797 {
736 "name": "onFileChanged", 798 "name": "onFileChanged",
737 "type": "function", 799 "type": "function",
738 "description": "Fired when watched file change event is detected.", 800 "description": "Fired when watched file change event is detected.",
739 "parameters": [ 801 "parameters": [
740 { 802 {
741 "$ref": "FileWatchEvent", 803 "$ref": "FileWatchEvent",
742 "name": "event", 804 "name": "event",
743 "description": "File watch event information." 805 "description": "File watch event information."
744 } 806 }
745 ] 807 ]
746 } 808 }
747 ] 809 ]
748 } 810 }
749 ] 811 ]
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/directory_model.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698