Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Side by Side Diff: chrome/browser/ui/browser_finder.h

Issue 11348344: Remove last usages of FindTabbedBrowserDeprecated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove presubmit check as well. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_FINDER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_FINDER_H_
6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_
7 7
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace contents { 13 namespace contents {
14 class WebContents; 14 class WebContents;
15 } 15 }
16 16
17 // Collection of functions to find Browsers based on various criteria. 17 // Collection of functions to find Browsers based on various criteria.
18 18
19 namespace browser { 19 namespace browser {
20 20
21 // Deprecated: Use FindTabbedBrowser() instead and pass in a desktop context.
22 Browser* FindTabbedBrowserDeprecated(Profile* profile,
23 bool match_original_profiles);
24
25 // Retrieve the last active tabbed browser with a profile matching |profile|. 21 // Retrieve the last active tabbed browser with a profile matching |profile|.
26 // If |match_original_profiles| is true, matching is done based on the 22 // If |match_original_profiles| is true, matching is done based on the
27 // original profile, eg profile->GetOriginalProfile() == 23 // original profile, eg profile->GetOriginalProfile() ==
28 // browser->profile()->GetOriginalProfile(). This has the effect of matching 24 // browser->profile()->GetOriginalProfile(). This has the effect of matching
29 // against both non-incognito and incognito profiles. If 25 // against both non-incognito and incognito profiles. If
30 // |match_original_profiles| is false, only an exact match may be returned. 26 // |match_original_profiles| is false, only an exact match may be returned.
31 // |type| refers to the host desktop the returned browser should belong to. 27 // |type| refers to the host desktop the returned browser should belong to.
32 Browser* FindTabbedBrowser(Profile* profile, 28 Browser* FindTabbedBrowser(Profile* profile,
33 bool match_original_profiles, 29 bool match_original_profiles,
34 chrome::HostDesktopType type); 30 chrome::HostDesktopType type);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 87
92 // Returns the number of browsers with the Profile |profile|. 88 // Returns the number of browsers with the Profile |profile|.
93 size_t GetBrowserCount(Profile* profile); 89 size_t GetBrowserCount(Profile* profile);
94 90
95 // Returns the number of tabbed browsers with the Profile |profile|. 91 // Returns the number of tabbed browsers with the Profile |profile|.
96 size_t GetTabbedBrowserCount(Profile* profile); 92 size_t GetTabbedBrowserCount(Profile* profile);
97 93
98 } // namespace chrome 94 } // namespace chrome
99 95
100 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_ 96 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698