| Index: components/download/internal/driver_entry.cc
|
| diff --git a/components/download/internal/driver_entry.cc b/components/download/internal/driver_entry.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a417511bd56e0ae4808191fb7dbf15a641135ae9
|
| --- /dev/null
|
| +++ b/components/download/internal/driver_entry.cc
|
| @@ -0,0 +1,25 @@
|
| +// 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/driver_entry.h"
|
| +
|
| +#include "net/http/http_response_headers.h"
|
| +
|
| +namespace download {
|
| +
|
| +DriverEntry::DriverEntry()
|
| + : state(State::UNKNOWN),
|
| + paused(false),
|
| + bytes_downloaded(0u),
|
| + expected_total_size(0u) {}
|
| +
|
| +DriverEntry::DriverEntry(const DriverEntry& other) = default;
|
| +
|
| +DriverEntry::~DriverEntry() = default;
|
| +
|
| +bool DriverEntry::valid() const {
|
| + return state != State::UNKNOWN && !guid.empty();
|
| +}
|
| +
|
| +} // namespace download
|
|
|