| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LIVE_TAB_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ | 6 #define COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "components/sessions/core/serialized_navigation_entry.h" | 8 #include "components/sessions/core/serialized_navigation_entry.h" |
| 10 #include "components/sessions/core/sessions_export.h" | 9 #include "components/sessions/core/sessions_export.h" |
| 11 #include "components/sessions/core/tab_restore_service.h" | 10 #include "components/sessions/core/tab_restore_service.h" |
| 12 | 11 |
| 13 namespace sessions { | 12 namespace sessions { |
| 14 | 13 |
| 15 // Interface that represents a currently-live tab to the core sessions code, and | 14 // Interface that represents a currently-live tab to the core sessions code, and |
| 16 // in particular, the tab restore service. This interface abstracts the concrete | 15 // in particular, the tab restore service. This interface abstracts the concrete |
| 17 // representation of a live tab on different platforms (e.g., WebContents on | 16 // representation of a live tab on different platforms (e.g., WebContents on |
| 18 // //content-based platforms). | 17 // //content-based platforms). |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 // platform-specific basis). | 36 // platform-specific basis). |
| 38 virtual void LoadIfNecessary() = 0; | 37 virtual void LoadIfNecessary() = 0; |
| 39 | 38 |
| 40 // Returns the user agent override, if any. | 39 // Returns the user agent override, if any. |
| 41 virtual const std::string& GetUserAgentOverride() const = 0; | 40 virtual const std::string& GetUserAgentOverride() const = 0; |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 } // namespace sessions | 43 } // namespace sessions |
| 45 | 44 |
| 46 #endif // COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ | 45 #endif // COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ |
| OLD | NEW |