aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-download.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-05-27 05:53:07 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-05-27 06:13:40 +0800
commit1b942ad48a848dedcb632895a1ac198c13993380 (patch)
treeb0403c385f42c221a652087f9e5d7522f973bffe /embed/ephy-download.c
parentf09209d1b359efeeebe7a2e5e5477be773723e2c (diff)
downloadgsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar.gz
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar.bz2
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar.lz
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar.xz
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.tar.zst
gsoc2013-epiphany-1b942ad48a848dedcb632895a1ac198c13993380.zip
e-download: document get_content_type
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)
{