From 6e91a9cc3d5a610198cf526a76e2ab642f10ecd7 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:59 -0500 Subject: Second Life viewer sources 1.20.13 --- linden/indra/llmedia/llmediamanager.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'linden/indra/llmedia/llmediamanager.h') diff --git a/linden/indra/llmedia/llmediamanager.h b/linden/indra/llmedia/llmediamanager.h index 7a2c868..0dbcc4a 100644 --- a/linden/indra/llmedia/llmediamanager.h +++ b/linden/indra/llmedia/llmediamanager.h @@ -45,8 +45,7 @@ class LLMediaManagerData LLMediaManagerData() : mBrowserParentWindow( 0 ), mBrowserProfileDir( "" ), - mBrowserProfileName ( "" ), - mBrowserUserAgentId( "" ) + mBrowserProfileName ( "" ) { }; void setBrowserApplicationDir( const std::string& browser_application_dir ) { mBrowserApplicationDir = browser_application_dir; }; @@ -64,16 +63,12 @@ class LLMediaManagerData void setBrowserProfileName( const std::string& browser_profile_name ) { mBrowserProfileName = browser_profile_name; }; std::string& getBrowserProfileName() { return mBrowserProfileName; }; - void setBrowserUserAgentId( const std::string& browser_user_agent_id ) { mBrowserUserAgentId = browser_user_agent_id; }; - std::string& getBrowserUserAgentId() { return mBrowserUserAgentId; }; - private: void* mBrowserParentWindow; std::string mBrowserProfileDir; std::string mBrowserProfileName; std::string mBrowserApplicationDir; std::string mBrowserComponentDir; - std::string mBrowserUserAgentId; }; //////////////////////////////////////////////////////////////////////////////// @@ -87,6 +82,13 @@ class LLMediaManager static void cleanupClass(); static LLMediaManager* getInstance(); + // We append the skin name to the browser user agent string, so + // we need to change it while the app is running, not just at + // init time. + // Must be called after initClass() above. + // *HACK: Breaks encapsulation model. JC + static void setBrowserUserAgent(std::string user_agent); + // Calls update on all media sources static void updateClass(); -- cgit v1.1