summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmediasettingssecurity.h
diff options
context:
space:
mode:
authorcallum <none@none>2009-10-15 11:29:14 -0700
committercallum <none@none>2009-10-15 11:29:14 -0700
commit3831ca912eb8b78ccdcfac7d37c015ca45351c83 (patch)
tree027137ca0b370bd41e178c192eae9659ff17e061 /indra/newview/llpanelmediasettingssecurity.h
parent434709680326aa634805afdcf900b7445ef4aac4 (diff)
https://jira.lindenlab.com/jira/browse/DEV-40649
Media auto refreshes after Whitelist set This checkin fixes a related issue to this task and prohibits user from (A) adding an item to the whitelist that would invalidate the home URL and (b) adding a home URL that would not pass the whitelist.
Diffstat (limited to 'indra/newview/llpanelmediasettingssecurity.h')
-rw-r--r--indra/newview/llpanelmediasettingssecurity.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llpanelmediasettingssecurity.h b/indra/newview/llpanelmediasettingssecurity.h
index b7cf67c039..b78ee92193 100644
--- a/indra/newview/llpanelmediasettingssecurity.h
+++ b/indra/newview/llpanelmediasettingssecurity.h
@@ -37,6 +37,7 @@
class LLCheckBoxCtrl;
class LLScrollListCtrl;
+class LLFloaterMediaSettings;
class LLPanelMediaSettingsSecurity : public LLPanel
{
@@ -52,6 +53,12 @@ class LLPanelMediaSettingsSecurity : public LLPanel
static void initValues( void* userdata, const LLSD& media_settings,bool editable );
static void clearValues( void* userdata, bool editable);
void addWhiteListItem(const std::string& url);
+ void setParent( LLFloaterMediaSettings* parent );
+ const std::string makeValidUrl( const std::string& src_url );
+ bool passesWhiteList( const std::string& added_url, const std::string& test_url );
+
+ protected:
+ LLFloaterMediaSettings* mParent;
private:
LLCheckBoxCtrl* mEnableWhiteList;