diff options
author | Armin Weatherwax | 2011-03-13 15:19:55 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-03-13 15:19:55 +0100 |
commit | b543f291fcf945330fd5a533cc7235c20d7cb4c5 (patch) | |
tree | 46e725a9a11f6d54535f869d0a2494efaeb6985c /linden/indra/newview/llviewerparcelmedia.h | |
parent | fix voice doesn't kick in. (diff) | |
download | meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.zip meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.gz meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.bz2 meta-impy-b543f291fcf945330fd5a533cc7235c20d7cb4c5.tar.xz |
Henri Beauchamps version of Sione Lomus media filter patch.
from http://sldev.free.fr/ : "MediaFilter_v3: based on code by Sione Lomu with a couple of bugfixes by Tonya Souther, this improved patch brings media and streaming audio URLs filtering (to prevent IP ripping by so-called security systems which violate the SL TOS by catching your IP and associating your various avatars with it, thus violating your anonimity). Beside empowering your viewer with allow/deny/blacklist/whitelist functions per domain, this improved patch makes the difference between external servers (domains names filtering) and in-world servers (scripted objects with built-in HTTP servers). I also fixed various bugs, security holes and shortcomings, refactored the code and improved it, and added a whitelist/blacklist erasing function."
Imprudence changes: added "MediaFilter" debug to be able to inspect the full url and media texture uuid
Diffstat (limited to 'linden/indra/newview/llviewerparcelmedia.h')
-rw-r--r-- | linden/indra/newview/llviewerparcelmedia.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerparcelmedia.h b/linden/indra/newview/llviewerparcelmedia.h index 0f1e85c..7531a0f 100644 --- a/linden/indra/newview/llviewerparcelmedia.h +++ b/linden/indra/newview/llviewerparcelmedia.h | |||
@@ -35,6 +35,9 @@ | |||
35 | 35 | ||
36 | #include "llviewermedia.h" | 36 | #include "llviewermedia.h" |
37 | 37 | ||
38 | // For use by other patches so they know that media filtering is implemented. | ||
39 | #define MEDIA_FILTERING 1 | ||
40 | |||
38 | class LLMessageSystem; | 41 | class LLMessageSystem; |
39 | class LLParcel; | 42 | class LLParcel; |
40 | class LLViewerParcelMediaNavigationObserver; | 43 | class LLViewerParcelMediaNavigationObserver; |
@@ -54,8 +57,20 @@ class LLViewerParcelMedia : public LLViewerMediaObserver | |||
54 | // called when the agent's parcel has a new URL, or the agent has | 57 | // called when the agent's parcel has a new URL, or the agent has |
55 | // walked on to a new parcel with media | 58 | // walked on to a new parcel with media |
56 | 59 | ||
57 | static void play(LLParcel* parcel); | 60 | static void play(LLParcel* parcel, bool filter = true); |
58 | // user clicked play button in media transport controls | 61 | // user clicked play button in media transport controls |
62 | static void playStreamingMusic(LLParcel* parcel, bool filter = true); | ||
63 | // play the parcel music stream | ||
64 | static void stopStreamingMusic(); | ||
65 | // stop the parcel music stream | ||
66 | |||
67 | static void filterMedia(LLParcel* parcel, U32 type); // type: 0 = media, 1 = streaming music | ||
68 | static bool allowedMedia(std::string media_url); | ||
69 | |||
70 | static bool loadDomainFilterList(); | ||
71 | static void saveDomainFilterList(); | ||
72 | static void clearDomainFilterList(); | ||
73 | static std::string extractDomain(std::string url); | ||
59 | 74 | ||
60 | static void stop(); | 75 | static void stop(); |
61 | // user clicked stop button in media transport controls | 76 | // user clicked stop button in media transport controls |
@@ -85,6 +100,13 @@ class LLViewerParcelMedia : public LLViewerMediaObserver | |||
85 | static LLUUID sMediaRegionID; | 100 | static LLUUID sMediaRegionID; |
86 | // HACK: this will change with Media on a Prim | 101 | // HACK: this will change with Media on a Prim |
87 | static viewer_media_t sMediaImpl; | 102 | static viewer_media_t sMediaImpl; |
103 | |||
104 | static bool sIsUserAction; | ||
105 | static bool sMediaFilterListLoaded; | ||
106 | static LLSD sMediaFilterList; | ||
107 | static std::set<std::string> sMediaQueries; | ||
108 | static std::set<std::string> sAllowedMedia; | ||
109 | static std::set<std::string> sDeniedMedia; | ||
88 | }; | 110 | }; |
89 | 111 | ||
90 | 112 | ||