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

Unified Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 7192016: chrome.experimental.downloads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merged db_handle, id; onCreated, onErased Created 9 years, 5 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
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/history/download_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_function_dispatcher.cc
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 15fa40e2c6c159ccdb9ba0184c890024e1e1df8b..c9a07a47e0f7e9c12239162125a29662cb3618ff 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/extensions/extension_context_menu_api.h"
#include "chrome/browser/extensions/extension_cookies_api.h"
#include "chrome/browser/extensions/extension_debugger_api.h"
+#include "chrome/browser/extensions/extension_downloads.h"
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/extensions/extension_history_api.h"
#include "chrome/browser/extensions/extension_i18n_api.h"
@@ -378,6 +379,18 @@ void FactoryRegistry::ResetFunctions() {
// Experimental App API.
RegisterFunction<AppNotifyFunction>();
RegisterFunction<AppClearAllNotificationsFunction>();
+
+ // Downloads
+ RegisterFunction<DownloadsDownloadFunction>();
+ RegisterFunction<DownloadsSearchFunction>();
+ RegisterFunction<DownloadsPauseFunction>();
+ RegisterFunction<DownloadsResumeFunction>();
+ RegisterFunction<DownloadsCancelFunction>();
+ RegisterFunction<DownloadsEraseFunction>();
+ RegisterFunction<DownloadsSetDestinationFunction>();
+ RegisterFunction<DownloadsAcceptDangerFunction>();
+ RegisterFunction<DownloadsShowFunction>();
+ RegisterFunction<DownloadsDragFunction>();
}
void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/history/download_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698