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_IOS_IOS_LIVE_TAB_H_ | 5 #ifndef COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ |
6 #define COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ | 6 #define COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
10 #include "components/sessions/core/live_tab.h" | 10 #include "components/sessions/core/live_tab.h" |
11 #include "components/sessions/ios/ios_serialized_navigation_builder.h" | 11 #include "components/sessions/ios/ios_serialized_navigation_builder.h" |
12 #include "ios/web/public/web_state/web_state.h" | 12 #include "ios/web/public/web_state/web_state.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class NavigationManager; | 15 class NavigationManager; |
16 class NavigationEntry; | |
17 } | 16 } |
18 | 17 |
19 namespace sessions { | 18 namespace sessions { |
20 | 19 |
21 // An implementation of LiveTab that is backed by web::WebState for use | 20 // An implementation of LiveTab that is backed by web::WebState for use |
22 // on //ios/web-based platforms. | 21 // on //ios/web-based platforms. |
23 class SESSIONS_EXPORT IOSLiveTab : public LiveTab, | 22 class SESSIONS_EXPORT IOSLiveTab : public LiveTab, |
24 public base::SupportsUserData::Data { | 23 public base::SupportsUserData::Data { |
25 public: | 24 public: |
26 ~IOSLiveTab() override; | 25 ~IOSLiveTab() override; |
(...skipping 28 matching lines...) Expand all Loading... |
55 | 54 |
56 // Needed to return an empty string in GetUserAgentOverride(). | 55 // Needed to return an empty string in GetUserAgentOverride(). |
57 static std::string user_agent_override_; | 56 static std::string user_agent_override_; |
58 | 57 |
59 DISALLOW_COPY_AND_ASSIGN(IOSLiveTab); | 58 DISALLOW_COPY_AND_ASSIGN(IOSLiveTab); |
60 }; | 59 }; |
61 | 60 |
62 } // namespace sessions | 61 } // namespace sessions |
63 | 62 |
64 #endif // COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ | 63 #endif // COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_ |
OLD | NEW |