| 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 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 TabNavigation(); | 40 TabNavigation(); |
| 41 TabNavigation(int index, | 41 TabNavigation(int index, |
| 42 const GURL& virtual_url, | 42 const GURL& virtual_url, |
| 43 const content::Referrer& referrer, | 43 const content::Referrer& referrer, |
| 44 const string16& title, | 44 const string16& title, |
| 45 const std::string& state, | 45 const std::string& state, |
| 46 content::PageTransition transition); | 46 content::PageTransition transition); |
| 47 TabNavigation(const TabNavigation& tab); | 47 TabNavigation(const TabNavigation& tab); |
| 48 ~TabNavigation(); | 48 virtual ~TabNavigation(); |
| 49 TabNavigation& operator=(const TabNavigation& tab); | 49 TabNavigation& operator=(const TabNavigation& tab); |
| 50 | 50 |
| 51 // Converts this TabNavigation into a NavigationEntry with a page id of | 51 // Converts this TabNavigation into a NavigationEntry with a page id of |
| 52 // |page_id|. The caller owns the returned NavigationEntry. | 52 // |page_id|. The caller owns the returned NavigationEntry. |
| 53 content::NavigationEntry* ToNavigationEntry(int page_id, | 53 content::NavigationEntry* ToNavigationEntry(int page_id, |
| 54 Profile* profile) const; | 54 Profile* profile) const; |
| 55 | 55 |
| 56 // Resets this TabNavigation from |entry|. | 56 // Resets this TabNavigation from |entry|. |
| 57 void SetFromNavigationEntry(const content::NavigationEntry& entry); | 57 void SetFromNavigationEntry(const content::NavigationEntry& entry); |
| 58 | 58 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 int64 post_id_; | 108 int64 post_id_; |
| 109 | 109 |
| 110 int index_; | 110 int index_; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 // SessionTab ---------------------------------------------------------------- | 113 // SessionTab ---------------------------------------------------------------- |
| 114 | 114 |
| 115 // SessionTab corresponds to a NavigationController. | 115 // SessionTab corresponds to a NavigationController. |
| 116 struct SessionTab { | 116 struct SessionTab { |
| 117 SessionTab(); | 117 SessionTab(); |
| 118 ~SessionTab(); | 118 virtual ~SessionTab(); |
| 119 | 119 |
| 120 // Unique id of the window. | 120 // Unique id of the window. |
| 121 SessionID window_id; | 121 SessionID window_id; |
| 122 | 122 |
| 123 // Unique if of the tab. | 123 // Unique if of the tab. |
| 124 SessionID tab_id; | 124 SessionID tab_id; |
| 125 | 125 |
| 126 // Visual index of the tab within its window. There may be gaps in these | 126 // Visual index of the tab within its window. There may be gaps in these |
| 127 // values. | 127 // values. |
| 128 // | 128 // |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Is the window maximized, minimized, or normal? | 200 // Is the window maximized, minimized, or normal? |
| 201 ui::WindowShowState show_state; | 201 ui::WindowShowState show_state; |
| 202 | 202 |
| 203 std::string app_name; | 203 std::string app_name; |
| 204 | 204 |
| 205 private: | 205 private: |
| 206 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 206 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 209 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| OLD | NEW |