1// Copyright (c) 2012 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 CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
6#define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
7
8namespace content {
9class WebContents;
10}
11
12// Delegate which is used by ToolbarModel class.
13class ToolbarModelDelegate {
14 public:
15  // Returns active WebContents.
16  virtual content::WebContents* GetActiveWebContents() const = 0;
17
18  // Returns whether the toolbar is hosted in a tabbed browser.
19  virtual bool InTabbedBrowser() const = 0;
20
21 protected:
22  virtual ~ToolbarModelDelegate() {}
23};
24
25#endif  // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
26