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

Unified Diff: chrome/renderer/extensions/downloads_custom_bindings.h

Issue 11574006: Implement chrome.downloads.onDeterminingFilename() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r180415 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/renderer/extensions/downloads_custom_bindings.h
diff --git a/chrome/renderer/extensions/downloads_custom_bindings.h b/chrome/renderer/extensions/downloads_custom_bindings.h
new file mode 100644
index 0000000000000000000000000000000000000000..7fa6474da9c9f9dbf764cbd6cd68988f5a366ea4
--- /dev/null
+++ b/chrome/renderer/extensions/downloads_custom_bindings.h
@@ -0,0 +1,25 @@
+// 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.
+
+#ifndef CHROME_RENDERER_EXTENSIONS_DOWNLOADS_CUSTOM_BINDINGS_H_
+#define CHROME_RENDERER_EXTENSIONS_DOWNLOADS_CUSTOM_BINDINGS_H_
+
+#include "chrome/renderer/extensions/chrome_v8_extension.h"
+
+namespace extensions {
+
+// Implements custom bindings for the downloads API.
+class DownloadsCustomBindings : public ChromeV8Extension {
+ public:
+ DownloadsCustomBindings();
+
+ private:
+ static v8::Handle<v8::Value> GetFilenameDeterminerId(
+ const v8::Arguments& args);
+ DISALLOW_COPY_AND_ASSIGN(DownloadsCustomBindings);
+};
+
+} // extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_DOWNLOADS_CUSTOM_BINDINGS_H_

Powered by Google App Engine
This is Rietveld 408576698