ios_live_tab.h 671 B

1234567891011121314151617181920212223
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_
  5. #define COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_
  6. #include "components/sessions/core/live_tab.h"
  7. #import "ios/web/public/web_state.h"
  8. namespace sessions {
  9. class SESSIONS_EXPORT IOSLiveTab : public LiveTab {
  10. public:
  11. ~IOSLiveTab() override;
  12. // The backing WebState of the live tab, or nullptr is it does not exist.
  13. virtual const web::WebState* GetWebState() const = 0;
  14. };
  15. } // namespace sessions
  16. #endif // COMPONENTS_SESSIONS_IOS_IOS_LIVE_TAB_H_