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

Unified Diff: chrome/common/extensions/api/streams_private.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: Fix base files Created 7 years, 10 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
Index: chrome/common/extensions/api/streams_private.json
diff --git a/chrome/common/extensions/api/streams_private.json b/chrome/common/extensions/api/streams_private.json
new file mode 100644
index 0000000000000000000000000000000000000000..224186d08a05eb9d2795edb54b83f5944cfd7d5d
--- /dev/null
+++ b/chrome/common/extensions/api/streams_private.json
@@ -0,0 +1,35 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace":"streamsPrivate",
+ "types": [
+ ],
+
+ "events": [
+ {
+ "name": "onExecuteMimeTypeHandler",
+ "type": "function",
+ "description": "Fired when a resource is fetched which matches a mime type handled by this extension. The resource request is cancelled, and the extension is expected to handle the request. The event is restricted to a small number of white-listed extensions.",
+ "parameters": [
+ {
+ "name": "mime_type",
Matt Perry 2013/03/01 22:15:16 use javaScriptStyle names for these.
Zachary Kuznia 2013/03/04 06:09:43 Done.
+ "type": "string",
+ "description": "The MIME type of the intercepted URL request."
+ },
+ {
+ "name": "original_url",
+ "type": "string",
+ "description": "The original URL that was intercepted."
+ }
+ ]
+ }
+ ],
+
+ "functions": [
+ ]
+ }
+]
+

Powered by Google App Engine
This is Rietveld 408576698