aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-download.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-download.c')
-rw-r--r--embed/ephy-download.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 81a04461f..ceab3339c 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -140,6 +140,16 @@ ephy_download_set_property (GObject *object,
}
}
+/**
+ * ephy_download_get_content_type:
+ * @download: an #EphyDownload
+ *
+ * Gets content-type information for @download. If the file is already
+ * present on the filesystem and readable, uses GIO to get the
+ * content-type. Otherwise it uses WebKit and Soup.
+ *
+ * Returns: content-type for @download, must be freed with g_free()
+ **/
char *
ephy_download_get_content_type (EphyDownload *download)
{