| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/sessions/session_types.h" | 5 #include "chrome/browser/sessions/session_types.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 navigations.begin(); i != navigations.end(); ++i, ++page_id) { | 116 navigations.begin(); i != navigations.end(); ++i, ++page_id) { |
| 117 entries->push_back(i->ToNavigationEntry(page_id, profile)); | 117 entries->push_back(i->ToNavigationEntry(page_id, profile)); |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 | 120 |
| 121 // SessionTab ----------------------------------------------------------------- | 121 // SessionTab ----------------------------------------------------------------- |
| 122 | 122 |
| 123 SessionTab::SessionTab() | 123 SessionTab::SessionTab() |
| 124 : tab_visual_index(-1), | 124 : tab_visual_index(-1), |
| 125 current_navigation_index(-1), | 125 current_navigation_index(-1), |
| 126 pinned(false) { | 126 pinned(false), |
| 127 session_storage_real_id(0), |
| 128 session_storage_real_id_associated(false) { |
| 127 } | 129 } |
| 128 | 130 |
| 129 SessionTab::~SessionTab() { | 131 SessionTab::~SessionTab() { |
| 130 } | 132 } |
| 131 | 133 |
| 132 // SessionWindow --------------------------------------------------------------- | 134 // SessionWindow --------------------------------------------------------------- |
| 133 | 135 |
| 134 SessionWindow::SessionWindow() | 136 SessionWindow::SessionWindow() |
| 135 : selected_tab_index(-1), | 137 : selected_tab_index(-1), |
| 136 type(Browser::TYPE_TABBED), | 138 type(Browser::TYPE_TABBED), |
| 137 is_constrained(true), | 139 is_constrained(true), |
| 138 show_state(ui::SHOW_STATE_DEFAULT) { | 140 show_state(ui::SHOW_STATE_DEFAULT) { |
| 139 } | 141 } |
| 140 | 142 |
| 141 SessionWindow::~SessionWindow() { | 143 SessionWindow::~SessionWindow() { |
| 142 STLDeleteElements(&tabs); | 144 STLDeleteElements(&tabs); |
| 143 } | 145 } |
| OLD | NEW |