Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r182523 - [GStreamer] extra-headers and keep-alive properties f…
…or HTTP source element https://bugs.webkit.org/show_bug.cgi?id=143480 Reviewed by Carlos Garcia Campos. Keep the resource loader around when persistent HTTP connection support is enabled. The keep-alive property is set to false by default. Also before sending the HTTP request we now check the contents of the extra-headers GstStructure and set additional headers based on the structure contents. Patch inspired by GStreamer's souphttpsrc element. * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: (webkit_web_src_init): (webKitWebSrcFinalize): (webKitWebSrcSetProperty): (webKitWebSrcGetProperty): (webKitWebSrcStop): Clear resource loader only for non-persistent connections. (webKitWebSrcSetExtraHeader): Utility function to append headers to an existing request based on a GValue contents. (webKitWebSrcProcessExtraHeaders): Parse a GValue and set headers based on its contents. (webKitWebSrcStart): Extra headers and persistent connection support. The resource loader is now lazily initialized here.
- Loading branch information
1 parent
3029d0c
commit be1ab2e
Showing
3 changed files
with
161 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
Source/WebCore/platform/graphics/gstreamer/GUniquePtrGStreamer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (C) 2015 Igalia S.L | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Library General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Library General Public License | ||
* along with this library; see the file COPYING.LIB. If not, write to | ||
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
* Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#ifndef GUniquePtrGStreamer_h | ||
#define GUniquePtrGStreamer_h | ||
#if USE(GSTREAMER) | ||
|
||
#include <gst/gststructure.h> | ||
#include <wtf/gobject/GUniquePtr.h> | ||
|
||
namespace WTF { | ||
|
||
WTF_DEFINE_GPTR_DELETER(GstStructure, gst_structure_free) | ||
|
||
} | ||
|
||
#endif // USE(GSTREAMER) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters