| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ | 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Index within the tab strip. May be -1 for an unknown index. | 95 // Index within the tab strip. May be -1 for an unknown index. |
| 96 int tabstrip_index; | 96 int tabstrip_index; |
| 97 | 97 |
| 98 // True if the tab was pinned. | 98 // True if the tab was pinned. |
| 99 bool pinned; | 99 bool pinned; |
| 100 | 100 |
| 101 // If non-empty gives the id of the extension for the tab. | 101 // If non-empty gives the id of the extension for the tab. |
| 102 std::string extension_app_id; | 102 std::string extension_app_id; |
| 103 | 103 |
| 104 // The associated client data. | 104 // The associated client data. |
| 105 scoped_ptr<PlatformSpecificTabData> platform_data; | 105 std::unique_ptr<PlatformSpecificTabData> platform_data; |
| 106 | 106 |
| 107 // The user agent override used for the tab's navigations (if applicable). | 107 // The user agent override used for the tab's navigations (if applicable). |
| 108 std::string user_agent_override; | 108 std::string user_agent_override; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // Represents a previously open window. | 111 // Represents a previously open window. |
| 112 struct SESSIONS_EXPORT Window : public Entry { | 112 struct SESSIONS_EXPORT Window : public Entry { |
| 113 Window(); | 113 Window(); |
| 114 ~Window() override; | 114 ~Window() override; |
| 115 | 115 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData(). | 190 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData(). |
| 191 // Subclasses of this class must be copyable by implementing the Clone() method | 191 // Subclasses of this class must be copyable by implementing the Clone() method |
| 192 // for usage by the Tab struct, which is itself copyable and assignable. | 192 // for usage by the Tab struct, which is itself copyable and assignable. |
| 193 class SESSIONS_EXPORT PlatformSpecificTabData { | 193 class SESSIONS_EXPORT PlatformSpecificTabData { |
| 194 public: | 194 public: |
| 195 virtual ~PlatformSpecificTabData(); | 195 virtual ~PlatformSpecificTabData(); |
| 196 | 196 |
| 197 private: | 197 private: |
| 198 friend TabRestoreService::Tab; | 198 friend TabRestoreService::Tab; |
| 199 | 199 |
| 200 virtual scoped_ptr<PlatformSpecificTabData> Clone() = 0; | 200 virtual std::unique_ptr<PlatformSpecificTabData> Clone() = 0; |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace sessions | 203 } // namespace sessions |
| 204 | 204 |
| 205 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ | 205 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |