Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/download/public/download_params.h" | 5 #include "components/download/public/download_params.h" |
| 6 | 6 |
| 7 #include <map> | |
|
xingliu
2017/05/09 06:11:41
nit: do we need this include?
David Trainor- moved to gerrit
2017/05/09 15:59:27
Oops not anymore.
| |
| 8 | |
| 7 #include "components/download/public/clients.h" | 9 #include "components/download/public/clients.h" |
| 8 | 10 |
| 9 namespace download { | 11 namespace download { |
| 10 | 12 |
| 11 SchedulingParams::SchedulingParams() | 13 SchedulingParams::SchedulingParams() |
| 12 : priority(Priority::DEFAULT), | 14 : priority(Priority::DEFAULT), |
| 13 network_requirements(NetworkRequirements::NONE), | 15 network_requirements(NetworkRequirements::NONE), |
| 14 battery_requirements(BatteryRequirements::BATTERY_INSENSITIVE) {} | 16 battery_requirements(BatteryRequirements::BATTERY_INSENSITIVE) {} |
| 15 | 17 |
| 16 RequestParams::RequestParams() : method("GET") {} | 18 RequestParams::RequestParams() : method("GET") {} |
| 17 | 19 |
| 18 DownloadParams::DownloadParams() | 20 DownloadParams::DownloadParams() : client(DownloadClient::INVALID) {} |
| 19 : client(DownloadClient::DOWNLOAD_CLIENT_INVALID) {} | |
| 20 | 21 |
| 21 DownloadParams::DownloadParams(const DownloadParams& other) = default; | 22 DownloadParams::DownloadParams(const DownloadParams& other) = default; |
| 22 | 23 |
| 23 DownloadParams::~DownloadParams() = default; | 24 DownloadParams::~DownloadParams() = default; |
| 24 | 25 |
| 25 } // namespace download | 26 } // namespace download |
| OLD | NEW |