diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 03:09:53 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 03:09:53 +0000 |
commit | 6dfed102065bda2e23541a5bf871b97258174fe3 (patch) | |
tree | 4b182c22eb74adcdd4ede2315062b991946b1005 /chrome/browser/browser_list.h | |
parent | 26e607f289bc2f5ca82ee804969572606e1c0738 (diff) | |
download | chromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.zip chromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.tar.gz chromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.tar.bz2 |
Implement tabs.createWindow extension api call. Required: (a) new RVHDelegate & TabContentsDelegate method(s) CreateExtensionFunctionDispatcher() so that the dispatcher could be created with (an optional) browser attached to it, while avoiding having render_host depend on browser.h
BUG=11092:
R=aa,mpComplete,darin,pkasting
Review URL: http://codereview.chromium.org/79070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r-- | chrome/browser/browser_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h index 858e97e..2488a09 100644 --- a/chrome/browser/browser_list.h +++ b/chrome/browser/browser_list.h @@ -50,6 +50,10 @@ class BrowserList { // in the list. If no Browsers exist, returns NULL. static Browser* GetLastActive(); + // Identical in behavior to GetLastActive(), except that the most recently + // open browser owned by |profile| is returned. If none exist, returns NULL. + static Browser* GetLastActiveWithProfile(Profile *profile); + // Find an existing browser window with the provided type. If the last active // has the right type, it is returned. Otherwise, the next available browser // is returned. Returns NULL if no such browser currently exists. |