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

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

Issue 288113004: [fsp] Add FileStreamReader for the reading operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems,
6 // that can be accessible from the file manager on Chrome OS. 6 // that can be accessible from the file manager on Chrome OS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"]
9 namespace fileSystemProvider { 9 namespace fileSystemProvider {
10 // Error codes used by providing extensions in response to requests. For 10 // Error codes used by providing extensions in response to requests. For
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Success callback for the <code>onReadDirectoryRequested</code> event. If 78 // Success callback for the <code>onReadDirectoryRequested</code> event. If
79 // more entries will be returned, then <code>hasNext</code> must be true, and 79 // more entries will be returned, then <code>hasNext</code> must be true, and
80 // it has to be called again with additional entries. If no more entries are 80 // it has to be called again with additional entries. If no more entries are
81 // available, then <code>hasNext</code> must be set to false. 81 // available, then <code>hasNext</code> must be set to false.
82 callback EntriesCallback = void(ResourceEntry[] entries, bool hasNext); 82 callback EntriesCallback = void(ResourceEntry[] entries, bool hasNext);
83 83
84 // Success callback for the <code>onReadFileRequested</code> event. If more 84 // Success callback for the <code>onReadFileRequested</code> event. If more
85 // data will be returned, then <code>hasNext</code> must be true, and it 85 // data will be returned, then <code>hasNext</code> must be true, and it
86 // has to be called again with additional entries. If no more data is 86 // has to be called again with additional entries. If no more data is
87 // available, then <code>hasNext</code> must be set to false. 87 // available, then <code>hasNext</code> must be set to false.
88 callback FileDataCallback = void(DOMString data, bool hasNext); 88 callback FileDataCallback = void(ArrayBuffer data, bool hasNext);
89 89
90 interface Functions { 90 interface Functions {
91 // Mounts a file system with the given <code>displayName</code>. 91 // Mounts a file system with the given <code>displayName</code>.
92 // <code>displayName</code> will be shown in the left panel of 92 // <code>displayName</code> will be shown in the left panel of
93 // Files.app. <code>displayName</code> can contain any characters 93 // Files.app. <code>displayName</code> can contain any characters
94 // including '/', but cannot be an empty string. <code>displayName</code> 94 // including '/', but cannot be an empty string. <code>displayName</code>
95 // should be descriptive but doesn't have to be unique. Duplicate display 95 // should be descriptive but doesn't have to be unique. Duplicate display
96 // names are uniquified by adding suffix like "(1)" in the Files.app UI. 96 // names are uniquified by adding suffix like "(1)" in the Files.app UI.
97 static void mount(DOMString displayName, 97 static void mount(DOMString displayName,
98 MountCallback successCallback, 98 MountCallback successCallback,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 [maxListeners=1] static void onReadFileRequested( 166 [maxListeners=1] static void onReadFileRequested(
167 long fileSystemId, 167 long fileSystemId,
168 long openRequestId, 168 long openRequestId,
169 double offset, 169 double offset,
170 double length, 170 double length,
171 FileDataCallback successCallback, 171 FileDataCallback successCallback,
172 ProviderErrorCallback errorCallback); 172 ProviderErrorCallback errorCallback);
173 }; 173 };
174 }; 174 };
175 175
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698