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.
#ifndef CONTENT_BROWSER_LOADER_DOWNLOAD_UTILS_IMPL_H_
#define CONTENT_BROWSER_LOADER_DOWNLOAD_UTILS_IMPL_H_
#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
#endif // CONTENT_BROWSER_LOADER_DOWNLOAD_UTILS_IMPL_H_