summaryrefslogtreecommitdiff
path: root/chromium/content/browser/loader/download_utils_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/loader/download_utils_impl.h')
-rw-r--r--chromium/content/browser/loader/download_utils_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/content/browser/loader/download_utils_impl.h b/chromium/content/browser/loader/download_utils_impl.h
new file mode 100644
index 00000000000..724e45ba529
--- /dev/null
+++ b/chromium/content/browser/loader/download_utils_impl.h
@@ -0,0 +1,22 @@
+// 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_