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

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

Issue 2851303003: Add the download component and initial setup (Closed)
Patch Set: Build break 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..da068dc440a50d35b42ab97167cd429c4b9d1ac5
--- /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(INVALID) {}
+
+DownloadParams::DownloadParams(const DownloadParams& other) = default;
+
+DownloadParams::~DownloadParams() = default;
+
+} // namespace download
« components/download/public/clients.h ('K') | « components/download/public/download_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698