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

Unified Diff: components/download/public/clients.h

Issue 2895953004: Add initial Controller to DownloadService (Closed)
Patch Set: Rebased Created 3 years, 7 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: components/download/public/clients.h
diff --git a/components/download/public/clients.h b/components/download/public/clients.h
index a464d212017efb76b1014a244d317b62e2a05642..36665b689624cc2c74a45afe213eeb3095531324 100644
--- a/components/download/public/clients.h
+++ b/components/download/public/clients.h
@@ -5,6 +5,11 @@
#ifndef COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
#define COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
+#include <map>
+#include <memory>
+
+#include "components/download/public/client.h"
+
namespace download {
// A list of all clients that are able to make download requests through the
@@ -28,6 +33,8 @@ enum class DownloadClient {
BOUNDARY = 3,
};
+using DownloadClientMap = std::map<DownloadClient, std::unique_ptr<Client>>;
+
} // namespace download
#endif // COMPONENTS_DOWNLOAD_PUBLIC_CLIENTS_H_
« no previous file with comments | « components/download/internal/test/test_download_driver.cc ('k') | components/download/public/download_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698