diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 03:47:11 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 03:47:11 +0000 |
commit | d292d8a82d12129d1e061f469b8edee035be8b97 (patch) | |
tree | aa0e706189af2477088e0211e1d8c7dd3844750c /content/browser/site_instance.h | |
parent | 9dade396bc7bcd363ba481fb2c328c93f226858d (diff) | |
download | chromium_src-d292d8a82d12129d1e061f469b8edee035be8b97.zip chromium_src-d292d8a82d12129d1e061f469b8edee035be8b97.tar.gz chromium_src-d292d8a82d12129d1e061f469b8edee035be8b97.tar.bz2 |
Swap processes on reload if a hosted app has been installed/uninstalled.
Also ensure the task manager only shows "App" if the process is an app process.
BUG=80621
TEST=AppApiTest.ReloadIntoAppProcess
TEST=TaskManagerBrowserTest.NoticeHostedAppTabs
Review URL: http://codereview.chromium.org/7063015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/site_instance.h')
-rw-r--r-- | content/browser/site_instance.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/site_instance.h b/content/browser/site_instance.h index 3b6346d..ebe1b3e 100644 --- a/content/browser/site_instance.h +++ b/content/browser/site_instance.h @@ -105,6 +105,11 @@ class SiteInstance : public base::RefCounted<SiteInstance>, // Darin suggests. SiteInstance* GetRelatedSiteInstance(const GURL& url); + // Returns whether this SiteInstance has a process that is the wrong type for + // the given URL. If so, the browser should force a process swap when + // navigating to the URL. + bool HasWrongProcessForURL(const GURL& url) const; + // Factory method to create a new SiteInstance. This will create a new // new BrowsingInstance, so it should only be used when creating a new tab // from scratch (or similar circumstances). Callers should ensure that |