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

Unified Diff: components/download/internal/download_service_impl.cc

Issue 2851303003: Add the download component and initial setup (Closed)
Patch Set: Addressed comments 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/internal/download_service_impl.cc
diff --git a/components/download/internal/download_service_impl.cc b/components/download/internal/download_service_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..bdce730bad678a113d605d4f5a75fb8f6105762d
--- /dev/null
+++ b/components/download/internal/download_service_impl.cc
@@ -0,0 +1,28 @@
+// Copyright 2017 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.
+
+#include "components/download/internal/download_service_impl.h"
+
+namespace download {
+
+// static
+DownloadService* DownloadService::Create(
+ const base::FilePath& storage_dir,
+ const scoped_refptr<base::SequencedTaskRunner>& background_task_runner) {
+ return new DownloadServiceImpl();
+}
+
+DownloadServiceImpl::DownloadServiceImpl() = default;
+DownloadServiceImpl::~DownloadServiceImpl() = default;
+
+void DownloadServiceImpl::StartDownload(const DownloadParams& download_params) {
+}
+void DownloadServiceImpl::PauseDownload(const std::string& guid) {}
+void DownloadServiceImpl::ResumeDownload(const std::string& guid) {}
+void DownloadServiceImpl::CancelDownload(const std::string& guid) {}
+void DownloadServiceImpl::ChangeDownloadCriteria(
+ const std::string& guid,
+ const SchedulingParams& params) {}
+
+} // namespace download
« no previous file with comments | « components/download/internal/download_service_impl.h ('k') | components/download/internal/download_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698