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

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

Issue 6257014: Once we initiate shutdown sequence, don't show crash bar on subsequent startu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | chrome/browser/ui/browser_list.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // Returns true if at least one off the record session is active. 161 // Returns true if at least one off the record session is active.
162 static bool IsOffTheRecordSessionActive(); 162 static bool IsOffTheRecordSessionActive();
163 163
164 // Called once there are no more browsers open and the application is exiting. 164 // Called once there are no more browsers open and the application is exiting.
165 static void AllBrowsersClosedAndAppExiting(); 165 static void AllBrowsersClosedAndAppExiting();
166 166
167 private: 167 private:
168 // Helper method to remove a browser instance from a list of browsers 168 // Helper method to remove a browser instance from a list of browsers
169 static void RemoveBrowserFrom(Browser* browser, BrowserVector* browser_list); 169 static void RemoveBrowserFrom(Browser* browser, BrowserVector* browser_list);
170 static void MarkAsCleanShutdown();
170 static void NotifyAndTerminate(); 171 static void NotifyAndTerminate();
171 #if defined(OS_CHROMEOS) 172 #if defined(OS_CHROMEOS)
172 static bool NeedBeforeUnloadFired(); 173 static bool NeedBeforeUnloadFired();
173 static bool PendingDownloads(); 174 static bool PendingDownloads();
174 #endif 175 #endif
175 176
176 static BrowserVector browsers_; 177 static BrowserVector browsers_;
177 static BrowserVector last_active_browsers_; 178 static BrowserVector last_active_browsers_;
178 static ObserverList<Observer> observers_; 179 static ObserverList<Observer> observers_;
179 180
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // tab index into the current Browser of the current web view 243 // tab index into the current Browser of the current web view
243 int web_view_index_; 244 int web_view_index_;
244 245
245 // Current TabContents, or NULL if we're at the end of the list. This can 246 // 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 247 // 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. 248 // this since the caller may access the current host many times.
248 TabContents* cur_; 249 TabContents* cur_;
249 }; 250 };
250 251
251 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ 252 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | chrome/browser/ui/browser_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698