Following his previous post, Mike Taulty wanted to have a MainView on the application that knows whether the app is in the browser, out-of-browser and/or elevated.
Source: Mike Taulty's Blog
Ultimately, this app is going to call the PDC OData service at a domain that does not have a client access policy file allowing cross-domain calls and I’m only going to get that working from an out-of-browser elevated application so my functionality in the browser is going to be purely around offering the user the chance to install the app out of browser.