| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LIST_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_LIST_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_LIST_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_LIST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 151 } |
| 152 | 152 |
| 153 // Return the number of browsers with the following profile which are | 153 // Return the number of browsers with the following profile which are |
| 154 // currently open. | 154 // currently open. |
| 155 static size_t GetBrowserCount(Profile* p); | 155 static size_t GetBrowserCount(Profile* p); |
| 156 | 156 |
| 157 // Return the number of browsers with the following profile and type which are | 157 // Return the number of browsers with the following profile and type which are |
| 158 // currently open. | 158 // currently open. |
| 159 static size_t GetBrowserCountForType(Profile* p, Browser::Type type); | 159 static size_t GetBrowserCountForType(Profile* p, Browser::Type type); |
| 160 | 160 |
| 161 // Returns true if at least one off the record session is active. | 161 // Returns true if at least one incognito session is active. |
| 162 static bool IsOffTheRecordSessionActive(); | 162 static bool IsOffTheRecordSessionActive(); |
| 163 | 163 |
| 164 // Send out notifications. | 164 // Send out notifications. |
| 165 // For ChromeOS, also request session manager to end the session. | 165 // For ChromeOS, also request session manager to end the session. |
| 166 static void NotifyAndTerminate(bool fast_path); | 166 static void NotifyAndTerminate(bool fast_path); |
| 167 | 167 |
| 168 // Called once there are no more browsers open and the application is exiting. | 168 // Called once there are no more browsers open and the application is exiting. |
| 169 static void AllBrowsersClosedAndAppExiting(); | 169 static void AllBrowsersClosedAndAppExiting(); |
| 170 | 170 |
| 171 private: | 171 private: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // tab index into the current Browser of the current web view | 249 // tab index into the current Browser of the current web view |
| 250 int web_view_index_; | 250 int web_view_index_; |
| 251 | 251 |
| 252 // Current TabContents, or NULL if we're at the end of the list. This can | 252 // Current TabContents, or NULL if we're at the end of the list. This can |
| 253 // be extracted given the browser iterator and index, but it's nice to cache | 253 // be extracted given the browser iterator and index, but it's nice to cache |
| 254 // this since the caller may access the current host many times. | 254 // this since the caller may access the current host many times. |
| 255 TabContents* cur_; | 255 TabContents* cur_; |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ | 258 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ |
| OLD | NEW |