diff options
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 | ||