Home | History | Annotate | Download | only in sessions

Lines Matching refs:browser

5 #include "chrome/browser/sessions/session_service.h"
18 #include "chrome/browser/extensions/extension_tab_helper.h"
19 #include "chrome/browser/prefs/session_startup_pref.h"
20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/sessions/session_backend.h"
22 #include "chrome/browser/sessions/session_command.h"
23 #include "chrome/browser/sessions/session_restore.h"
24 #include "chrome/browser/sessions/session_types.h"
25 #include "chrome/browser/tabs/tab_strip_model.h"
26 #include "chrome/browser/ui/browser_init.h"
27 #include "chrome/browser/ui/browser_list.h"
28 #include "chrome/browser/ui/browser_window.h"
29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
31 #include "content/browser/tab_contents/navigation_controller.h"
32 #include "content/browser/tab_contents/navigation_entry.h"
33 #include "content/browser/tab_contents/tab_contents.h"
38 #include "chrome/browser/app_controller_cppsafe_mac.h"
245 // User closed the last tab in the last tabbed browser. Don't mark the
293 Browser::Type type) {
299 // The user created a new tabbed browser with our profile. Commit any
475 Browser* browser) {
485 // We're going from no tabbed browsers to a tabbed browser (and not in
495 profile(), browser, false, browser ? false : true, urls_to_open);
508 Browser* browser = Source<Browser>(source).ptr();
509 if (browser->profile() != profile() ||
510 !should_track_changes_for_browser_type(browser->type())) {
514 RestoreIfNecessary(std::vector<GURL>(), browser);
515 SetWindowType(browser->session_id(), browser->type());
845 static_cast<Browser::Type>(i->second->type))) {
1115 Browser* browser,
1119 DCHECK(browser && commands);
1120 DCHECK(browser->session_id().id());
1123 CreateSetWindowBoundsCommand(browser->session_id(),
1124 browser->window()->GetRestoredBounds(),
1125 browser->window()->IsMaximized()));
1128 browser->session_id(), WindowTypeForBrowserType(browser->type())));
1131 for (int i = 0; i < browser->tab_count(); ++i) {
1132 TabContents* tab = browser->GetTabContentsAt(i);
1135 BuildCommandsForTab(browser->session_id(), &tab->controller(), i,
1136 browser->tabstrip_model()->IsTabPinned(i),
1139 windows_to_track->insert(browser->session_id().id());
1145 CreateSetSelectedTabInWindow(browser->session_id(),
1146 browser->active_index()));
1156 // Make sure the browser has tabs and a window. Browsers destructor
1157 // removes itself from the BrowserList. When a browser is closed the
1159 // for us to get a handle to a browser that is about to be removed. If
1160 // the tab count is 0 or the window is NULL, the browser is about to be
1294 Browser* browser = *i;
1295 const SessionID::id_type browser_id = browser->session_id().id();
1298 should_track_changes_for_browser_type(browser->type()) &&
1299 browser->profile() == profile()) {
1312 Browser::Type type) {
1315 case Browser::TYPE_POPUP:
1317 case Browser::TYPE_APP:
1319 case Browser::TYPE_APP_POPUP:
1321 case Browser::TYPE_DEVTOOLS:
1323 case Browser::TYPE_APP_PANEL:
1325 case Browser::TYPE_NORMAL:
1331 Browser::Type SessionService::BrowserTypeForWindowType(
1335 return Browser::TYPE_POPUP;
1337 return Browser::TYPE_APP;
1339 return Browser::TYPE_APP_POPUP;
1341 return Browser::TYPE_DEVTOOLS;
1343 return Browser::TYPE_APP_PANEL;
1346 return Browser::TYPE_NORMAL;