[epiphany] Revert "about-handler: Remove unused functions after about:plugins removal"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "about-handler: Remove unused functions after about:plugins removal"
- Date: Fri, 28 Oct 2016 01:09:47 +0000 (UTC)
commit 64f372414e3400f9a2c49c5ece931d667fe523f8
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Oct 27 20:05:16 2016 -0500
Revert "about-handler: Remove unused functions after about:plugins removal"
This reverts commit ef5d1272d4fbed423aadce7c2099d297629e2b90.
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 46c83f9..c81a2e8 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]