Index: chrome/common/extensions/api/downloads_internal.idl |
diff --git a/chrome/common/extensions/api/downloads_internal.idl b/chrome/common/extensions/api/downloads_internal.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6b86ee53d140c53545c42d586d4b4df5dce8ead4 |
--- /dev/null |
+++ b/chrome/common/extensions/api/downloads_internal.idl |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2012 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. |
+ |
+[permissions=downloads_internal, internal=true, nodoc=true] |
+namespace downloadsInternal { |
+ interface Functions { |
+ // Secretly called by chrome.downloads.onDeterminingFilename.addListener. |
+ static void addFilenameDeterminer(DOMString subEventId); |
+ |
+ // Secretly called by chrome.downloads.onDeterminingFilename.removeListener. |
+ static void removeFilenameDeterminer(DOMString subEventId); |
+ |
+ // Secretly called when onDeterminingFilename handlers return. |
+ static void determineFilename(DOMString subEventId, |
+ long downloadId, |
+ optional DOMString filename, |
+ optional boolean overwrite); |
+ }; |
+ |
+ interface Events { |
+ }; |
+}; |