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

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

Issue 7321011: Multi-Profiles: Add delete profile command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug code Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // handle SIGTERM on chromeos which is a signal to force shutdown 134 // handle SIGTERM on chromeos which is a signal to force shutdown
135 // the chrome. 135 // the chrome.
136 static void ExitCleanly(); 136 static void ExitCleanly();
137 #endif 137 #endif
138 138
139 // Closes all browsers. If the session is ending the windows are closed 139 // Closes all browsers. If the session is ending the windows are closed
140 // directly. Otherwise the windows are closed by way of posting a WM_CLOSE 140 // directly. Otherwise the windows are closed by way of posting a WM_CLOSE
141 // message. 141 // message.
142 static void CloseAllBrowsers(); 142 static void CloseAllBrowsers();
143 143
144 // Closes all browsers for |profile|.
145 static void CloseAllBrowsersWithProfile(Profile* profile);
146
144 // Begins shutdown of the application when the desktop session is ending. 147 // Begins shutdown of the application when the desktop session is ending.
145 static void SessionEnding(); 148 static void SessionEnding();
146 149
147 // Returns true if there is at least one Browser with the specified profile. 150 // Returns true if there is at least one Browser with the specified profile.
148 static bool HasBrowserWithProfile(Profile* profile); 151 static bool HasBrowserWithProfile(Profile* profile);
149 152
150 // Tells the BrowserList to keep the application alive after the last Browser 153 // Tells the BrowserList to keep the application alive after the last Browser
151 // closes. This is implemented as a count, so callers should pair their calls 154 // closes. This is implemented as a count, so callers should pair their calls
152 // to StartKeepAlive() with matching calls to EndKeepAlive() when they no 155 // to StartKeepAlive() with matching calls to EndKeepAlive() when they no
153 // longer need to keep the application running. 156 // longer need to keep the application running.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // iterator over the TabContentsWrappers doing background printing. 282 // iterator over the TabContentsWrappers doing background printing.
280 std::set<TabContentsWrapper*>::const_iterator bg_printing_iterator_; 283 std::set<TabContentsWrapper*>::const_iterator bg_printing_iterator_;
281 284
282 // Current TabContents, or NULL if we're at the end of the list. This can 285 // Current TabContents, or NULL if we're at the end of the list. This can
283 // be extracted given the browser iterator and index, but it's nice to cache 286 // be extracted given the browser iterator and index, but it's nice to cache
284 // this since the caller may access the current host many times. 287 // this since the caller may access the current host many times.
285 TabContentsWrapper* cur_; 288 TabContentsWrapper* cur_;
286 }; 289 };
287 290
288 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_ 291 #endif // CHROME_BROWSER_UI_BROWSER_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698