aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-shell.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-06 18:36:39 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-06 18:36:39 +0800
commit510dc2f81c7d5da00ae321c4f87fe74bc7873e0d (patch)
treedc55cc4838c34ad069a5464271a3cd17621bf3f3 /embed/ephy-embed-shell.h
parent665035daca3b08898e1d838d38c65fbe5f36ff95 (diff)
downloadgsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar.gz
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar.bz2
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar.lz
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar.xz
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.tar.zst
gsoc2013-epiphany-510dc2f81c7d5da00ae321c4f87fe74bc7873e0d.zip
Correct download dir default.
2003-11-06 Marco Pesenti Gritti <marco@gnome.org> * data/epiphany.schemas.in: Correct download dir default. * embed/ephy-embed-shell.h: * embed/ephy-embed-shell.c: (ephy_embed_shell_init), (ephy_embed_shell_finalize), (ephy_embed_shell_get_encodings), (load_mime_from_xml), (ephy_embed_shell_check_mime): Add check_mime api for permissions. * embed/mozilla/ContentHandler.cpp: First incomplete try at using it.
Diffstat (limited to 'embed/ephy-embed-shell.h')
-rw-r--r--embed/ephy-embed-shell.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index 610123eb0..6cafdc63c 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -42,6 +42,13 @@ typedef struct EphyEmbedShellPrivate EphyEmbedShellPrivate;
extern EphyEmbedShell *embed_shell;
+typedef enum
+{
+ EPHY_MIME_PERMISSION_SAFE = 1,
+ EPHY_MIME_PERMISSION_UNSAFE = 2,
+ EPHY_MIME_PERMISSION_UNKNOWN = 3
+} EphyMimePermission;
+
struct EphyEmbedShell
{
GObject parent;
@@ -57,21 +64,24 @@ struct EphyEmbedShellClass
GObject * (* get_downloader_view) (EphyEmbedShell *shell);
};
-GType ephy_embed_shell_get_type (void);
+GType ephy_embed_shell_get_type (void);
+
+GType ephy_embed_shell_get_impl (void);
-GType ephy_embed_shell_get_impl (void);
+EphyEmbedShell *ephy_embed_shell_new (const char *type);
-EphyEmbedShell *ephy_embed_shell_new (const char *type);
+GObject *ephy_embed_shell_get_favicon_cache (EphyEmbedShell *ges);
-GObject *ephy_embed_shell_get_favicon_cache (EphyEmbedShell *ges);
+EphyHistory *ephy_embed_shell_get_global_history (EphyEmbedShell *shell);
-EphyHistory *ephy_embed_shell_get_global_history (EphyEmbedShell *shell);
+GObject *ephy_embed_shell_get_downloader_view (EphyEmbedShell *shell);
-GObject *ephy_embed_shell_get_downloader_view (EphyEmbedShell *shell);
+GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell);
-GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell);
+EphyEmbedSingle *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell);
-EphyEmbedSingle *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell);
+EphyMimePermission ephy_embed_shell_check_mime (EphyEmbedShell *shell,
+ const char *mime_type);
G_END_DECLS