Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: blimp/engine/common/tab.h

Issue 2176733003: Add TabManager class, relocate Tab to common/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | blimp/engine/common/tab.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | blimp/engine/common/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698