| 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" |
| 11 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
| 12 | 12 |
| 13 using content::NavigationEntry; | 13 using content::NavigationEntry; |
| 14 | 14 |
| 15 // TabNavigation -------------------------------------------------------------- | 15 // TabNavigation -------------------------------------------------------------- |
| 16 | 16 |
| 17 TabNavigation::TabNavigation() | 17 TabNavigation::TabNavigation() |
| 18 : transition_(content::PAGE_TRANSITION_TYPED), | 18 : transition_(content::PAGE_TRANSITION_TYPED), |
| 19 type_mask_(0), | 19 type_mask_(0), |
| 20 post_id_(-1), |
| 20 index_(-1) { | 21 index_(-1) { |
| 21 } | 22 } |
| 22 | 23 |
| 23 TabNavigation::TabNavigation(int index, | 24 TabNavigation::TabNavigation(int index, |
| 24 const GURL& virtual_url, | 25 const GURL& virtual_url, |
| 25 const content::Referrer& referrer, | 26 const content::Referrer& referrer, |
| 26 const string16& title, | 27 const string16& title, |
| 27 const std::string& state, | 28 const std::string& state, |
| 28 content::PageTransition transition) | 29 content::PageTransition transition) |
| 29 : virtual_url_(virtual_url), | 30 : virtual_url_(virtual_url), |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 SessionWindow::SessionWindow() | 124 SessionWindow::SessionWindow() |
| 124 : selected_tab_index(-1), | 125 : selected_tab_index(-1), |
| 125 type(Browser::TYPE_TABBED), | 126 type(Browser::TYPE_TABBED), |
| 126 is_constrained(true), | 127 is_constrained(true), |
| 127 show_state(ui::SHOW_STATE_DEFAULT) { | 128 show_state(ui::SHOW_STATE_DEFAULT) { |
| 128 } | 129 } |
| 129 | 130 |
| 130 SessionWindow::~SessionWindow() { | 131 SessionWindow::~SessionWindow() { |
| 131 STLDeleteElements(&tabs); | 132 STLDeleteElements(&tabs); |
| 132 } | 133 } |
| OLD | NEW |