blob: f09d80afe6785e85fb5e93e2cb3d2f27d9074d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_TABS_TAB_HANDLER_H_
#define CHROME_BROWSER_TABS_TAB_HANDLER_H_
#pragma once
class Browser;
class Profile;
class TabStripModel;
class TabHandlerDelegate {
public:
virtual Profile* GetProfile() const = 0;
// TODO(beng): remove once decoupling with Browser is complete.
virtual Browser* AsBrowser() = 0;
};
// An interface implemented by an object that can perform tab related
// functionality for a Browser. This functionality includes mapping individual
// TabContentses into indices for an index-based tab organization scheme for
// example.
class TabHandler {
public:
virtual ~TabHandler() {}
// Creates a TabHandler implementation and returns it, transferring ownership
// to the caller.
static TabHandler* CreateTabHandler(TabHandlerDelegate* delegate);
// TODO(beng): remove once decoupling with Browser is complete.
virtual TabStripModel* GetTabStripModel() const = 0;
};
#endif // CHROME_BROWSER_TABS_TAB_HANDLER_H_
|