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..fd3b5e323833b98151d78e3d9ac299d21943d9b6 |
--- /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 determinerId); |
+ |
+ // Secretly called by chrome.downloads.onDeterminingFilename.removeListener. |
+ static void removeFilenameDeterminer(DOMString determinerId); |
+ |
+ // Secretly called when onDeterminingFilename handlers return. |
+ static void determineFilename(DOMString determinerId, |
+ long downloadId, |
+ optional DOMString filename, |
+ optional boolean overwrite); |
+ }; |
+ |
+ interface Events { |
+ }; |
+}; |