| OLD | NEW |
| 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 #include "chrome/browser/ui/browser_list.h" | 5 #include "chrome/browser/ui/browser_list.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_list_impl.h" | 9 #include "chrome/browser/ui/browser_list_impl.h" |
| 10 #include "chrome/browser/ui/browser_list_observer.h" | 10 #include "chrome/browser/ui/browser_list_observer.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // static | 39 // static |
| 40 void BrowserList::RemoveObserver(chrome::BrowserListObserver* observer) { | 40 void BrowserList::RemoveObserver(chrome::BrowserListObserver* observer) { |
| 41 GetNativeList()->RemoveObserver(observer); | 41 GetNativeList()->RemoveObserver(observer); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) { | 44 void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) { |
| 45 GetNativeList()->CloseAllBrowsersWithProfile(profile); | 45 GetNativeList()->CloseAllBrowsersWithProfile(profile); |
| 46 } | 46 } |
| 47 | 47 |
| 48 // static | 48 // static |
| 49 BrowserList::const_iterator BrowserList::begin() { | |
| 50 return GetNativeList()->begin(); | |
| 51 } | |
| 52 | |
| 53 // static | |
| 54 BrowserList::const_iterator BrowserList::end() { | |
| 55 return GetNativeList()->end(); | |
| 56 } | |
| 57 | |
| 58 // static | |
| 59 bool BrowserList::empty() { | 49 bool BrowserList::empty() { |
| 60 return GetNativeList()->empty(); | 50 return GetNativeList()->empty(); |
| 61 } | 51 } |
| 62 | 52 |
| 63 // static | 53 // static |
| 64 size_t BrowserList::size() { | 54 size_t BrowserList::size() { |
| 65 return GetNativeList()->size(); | 55 return GetNativeList()->size(); |
| 66 } | 56 } |
| 67 | 57 |
| 68 // static | 58 // static |
| (...skipping 14 matching lines...) Expand all Loading... |
| 83 | 73 |
| 84 // static | 74 // static |
| 85 bool BrowserList::IsOffTheRecordSessionActive() { | 75 bool BrowserList::IsOffTheRecordSessionActive() { |
| 86 return GetNativeList()->IsIncognitoWindowOpen(); | 76 return GetNativeList()->IsIncognitoWindowOpen(); |
| 87 } | 77 } |
| 88 | 78 |
| 89 // static | 79 // static |
| 90 bool BrowserList::IsOffTheRecordSessionActiveForProfile(Profile* profile) { | 80 bool BrowserList::IsOffTheRecordSessionActiveForProfile(Profile* profile) { |
| 91 return GetNativeList()->IsIncognitoWindowOpenForProfile(profile); | 81 return GetNativeList()->IsIncognitoWindowOpenForProfile(profile); |
| 92 } | 82 } |
| OLD | NEW |