blob: 724e45ba5294de9866bce7e42618636b3f24a636 [file] [log] [blame]
// Copyright 2018 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 "content/public/browser/download_utils.h"
namespace content {
namespace download_utils {
// Determines whether given response would result in a download.
// Note this doesn't handle the case when a plugin exists for the |mime_type|.
bool IsDownload(const GURL& url,
const net::HttpResponseHeaders* headers,
const std::string& mime_type);
} // namespace download_utils
} // namespace content