OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/download/internal/driver_entry.h" |
| 6 |
| 7 #include "net/http/http_response_headers.h" |
| 8 |
| 9 namespace download { |
| 10 |
| 11 DriverEntry::DriverEntry() |
| 12 : state(State::UNKNOWN), |
| 13 paused(false), |
| 14 bytes_downloaded(0u), |
| 15 expected_total_size(0u) {} |
| 16 |
| 17 DriverEntry::DriverEntry(const DriverEntry& other) = default; |
| 18 |
| 19 DriverEntry::~DriverEntry() = default; |
| 20 |
| 21 bool DriverEntry::valid() const { |
| 22 return state != State::UNKNOWN && !guid.empty(); |
| 23 } |
| 24 |
| 25 } // namespace download |
OLD | NEW |