| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 static bool PendingDownloads(); | 173 static bool PendingDownloads(); |
| 174 #endif | 174 #endif |
| 175 | 175 |
| 176 static BrowserVector browsers_; | 176 static BrowserVector browsers_; |
| 177 static BrowserVector last_active_browsers_; | 177 static BrowserVector last_active_browsers_; |
| 178 static ObserverList<Observer> observers_; | 178 static ObserverList<Observer> observers_; |
| 179 | 179 |
| 180 // Counter of calls to StartKeepAlive(). If non-zero, the application will | 180 // Counter of calls to StartKeepAlive(). If non-zero, the application will |
| 181 // continue running after the last browser has exited. | 181 // continue running after the last browser has exited. |
| 182 static int keep_alive_count_; | 182 static int keep_alive_count_; |
| 183 |
| 184 #if defined(OS_CHROMEOS) |
| 185 // Have we already notified the window manager that we're signing out? |
| 186 static bool notified_window_manager_about_signout_; |
| 187 #endif |
| 183 }; | 188 }; |
| 184 | 189 |
| 185 class TabContents; | 190 class TabContents; |
| 186 | 191 |
| 187 // Iterates through all web view hosts in all browser windows. Because the | 192 // Iterates through all web view hosts in all browser windows. Because the |
| 188 // renderers act asynchronously, getting a host through this interface does | 193 // renderers act asynchronously, getting a host through this interface does |
| 189 // not guarantee that the renderer is ready to go. Doing anything to affect | 194 // not guarantee that the renderer is ready to go. Doing anything to affect |
| 190 // browser windows or tabs while iterating may cause incorrect behavior. | 195 // browser windows or tabs while iterating may cause incorrect behavior. |
| 191 // | 196 // |
| 192 // Example: | 197 // Example: |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // tab index into the current Browser of the current web view | 247 // tab index into the current Browser of the current web view |
| 243 int web_view_index_; | 248 int web_view_index_; |
| 244 | 249 |
| 245 // Current TabContents, or NULL if we're at the end of the list. This can | 250 // Current TabContents, or NULL if we're at the end of the list. This can |
| 246 // be extracted given the browser iterator and index, but it's nice to cache | 251 // be extracted given the browser iterator and index, but it's nice to cache |
| 247 // this since the caller may access the current host many times. | 252 // this since the caller may access the current host many times. |
| 248 TabContents* cur_; | 253 TabContents* cur_; |
| 249 }; | 254 }; |
| 250 | 255 |
| 251 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ | 256 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ |
| OLD | NEW |