| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 |
| 5 #ifndef BLIMP_ENGINE_COMMON_TAB_H_ |
| 6 #define BLIMP_ENGINE_COMMON_TAB_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 |
| 12 namespace content { |
| 13 class WebContents; |
| 14 } |
| 15 |
| 16 namespace blimp { |
| 17 namespace engine { |
| 18 |
| 19 class PageLoadTracker; |
| 20 |
| 21 // Contains the state and metadata for a given tab. |
| 22 class Tab { |
| 23 public: |
| 24 Tab(int tab_id, std::unique_ptr<content::WebContents> web_contents); |
| 25 ~Tab(); |
| 26 |
| 27 int id() const { return id_; } |
| 28 content::WebContents* web_contents() const { return web_contents_.get(); } |
| 29 |
| 30 private: |
| 31 std::unique_ptr<content::WebContents> web_contents_; |
| 32 const int id_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 35 }; |
| 36 |
| 37 } // namespace engine |
| 38 } // namespace blimp |
| 39 |
| 40 #endif // BLIMP_ENGINE_COMMON_TAB_H_ |
| OLD | NEW |