diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-10-27 20:05:16 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-10-27 20:05:16 -0500 |
commit | 64f372414e3400f9a2c49c5ece931d667fe523f8 (patch) | |
tree | 9edbb10b56e1dbb57823895d33e62b435813ea39 /embed/ephy-about-handler.c | |
parent | 69def71511985485981d98a3f5af82972120aa9f (diff) | |
download | epiphany-64f372414e3400f9a2c49c5ece931d667fe523f8.tar.gz |
Revert "about-handler: Remove unused functions after about:plugins removal"
This reverts commit ef5d1272d4fbed423aadce7c2099d297629e2b90.
Diffstat (limited to 'embed/ephy-about-handler.c')
-rw-r--r-- | embed/ephy-about-handler.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c index 46c83f99f..c81a2e80f 100644 --- a/embed/ephy-about-handler.c +++ b/embed/ephy-about-handler.c @@ -91,6 +91,33 @@ ephy_about_handler_finish_request (WebKitURISchemeRequest *request, g_object_unref (stream); } +typedef struct { + EphyAboutHandler *handler; + WebKitURISchemeRequest *request; +} EphyAboutRequest; + +static EphyAboutRequest * +ephy_about_request_new (EphyAboutHandler *handler, + WebKitURISchemeRequest *request) +{ + EphyAboutRequest *about_request; + + about_request = g_slice_new (EphyAboutRequest); + about_request->handler = g_object_ref (handler); + about_request->request = g_object_ref (request); + + return about_request; +} + +static void +ephy_about_request_free (EphyAboutRequest *about_request) +{ + g_object_unref (about_request->handler); + g_object_unref (about_request->request); + + g_slice_free (EphyAboutRequest, about_request); +} + static void handle_memory_finished_cb (EphyAboutHandler *handler, GAsyncResult *result, |