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

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

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 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
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":"fileBrowserHandler", 7 "namespace":"fileBrowserHandler",
8 "platforms": ["chromeos"], 8 "platforms": ["chromeos"],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 25 matching lines...) Expand all
36 "name": "id", 36 "name": "id",
37 "type": "string", 37 "type": "string",
38 "description": "File browser action id as specified in the listener component's manifest." 38 "description": "File browser action id as specified in the listener component's manifest."
39 }, 39 },
40 { 40 {
41 "name": "details", 41 "name": "details",
42 "$ref": "FileHandlerExecuteEventDetails", 42 "$ref": "FileHandlerExecuteEventDetails",
43 "description": "File handler execute event details." 43 "description": "File handler execute event details."
44 } 44 }
45 ] 45 ]
46 },
47 {
48 "name": "onExecuteContentHandler",
49 "type": "function",
50 "description": "Fired when a resource is fetched which matches a mime ty pe handled by this extension. The resource request is cancelled, and the extensi on is expected to handle the request. The event is restricted to a small number of white-listed fileBrowserHandlers.",
51 "parameters": [
52 {
53 "name": "mime_type",
54 "type": "string",
55 "description": "The MIME type of the intercepted URL request."
56 },
57 {
58 "name": "content_url",
59 "type": "string",
60 "description": "The intercepted URL request. The handler should fetc h and handle data referenced by the URL."
61 }
62 ]
63 } 46 }
64 ], 47 ],
65 48
66 "functions": [ 49 "functions": [
67 { 50 {
68 "name": "selectFile", 51 "name": "selectFile",
69 "type": "function", 52 "type": "function",
70 "description": "Prompts user to select file path under which file should be saved. When the file is selected, file access permission required to use the file (read, write and create) are granted to the caller. The file will not actu ally get created during the function call, so function caller must ensure its ex istence before using it. The function has to be invoked with a user gesture.", 53 "description": "Prompts user to select file path under which file should be saved. When the file is selected, file access permission required to use the file (read, write and create) are granted to the caller. The file will not actu ally get created during the function call, so function caller must ensure its ex istence before using it. The function has to be invoked with a user gesture.",
71 "parameters": [ 54 "parameters": [
72 { 55 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 92 }
110 } 93 }
111 } 94 }
112 ] 95 ]
113 } 96 }
114 ] 97 ]
115 } 98 }
116 ] 99 ]
117 } 100 }
118 ] 101 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/extension_api.cc ('k') | chrome/common/extensions/api/streams_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698