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

Unified Diff: components/download/public/download_params.cc

Issue 2851303003: Add the download component and initial setup (Closed)
Patch Set: Renamed the service Created 3 years, 8 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/download_params.cc
diff --git a/components/download/public/download_params.cc b/components/download/public/download_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..40cd9d51aa6fd3beb695278b6cecd97877dc30b3
--- /dev/null
+++ b/components/download/public/download_params.cc
@@ -0,0 +1,24 @@
+// 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/public/download_params.h"
+
+#include "components/download/public/clients.h"
+
+namespace download {
+
+SchedulingParams::SchedulingParams()
+ : priority(Priority::DEFAULT),
+ network_requirements(NetworkRequirements::NONE),
+ battery_requirements(BatteryRequirements::BATTERY_INSENSITIVE) {}
+
+RequestParams::RequestParams() : method("GET") {}
+
+DownloadParams::DownloadParams() : client(DOWNLOAD_CLIENT_INVALID) {}
+
+DownloadParams::DownloadParams(const DownloadParams& other) = default;
+
+DownloadParams::~DownloadParams() = default;
+
+} // namespace download

Powered by Google App Engine
This is Rietveld 408576698