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

Side by Side Diff: chrome/browser/ui/browser_toolbar_model_delegate.h

Issue 1653013002: Abstract ToolbarModelImpl dependencies on //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1
Patch Set: Address comments Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" 10 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h"
11 11
12 class Browser; 12 class Browser;
13 13
14 // Implementation of ToolbarModelDelegate which uses an instance of 14 // Implementation of ToolbarModelDelegate which uses an instance of
15 // Browser in order to fulfil its duties. 15 // Browser in order to fulfil its duties.
16 class BrowserToolbarModelDelegate : public ChromeToolbarModelDelegate { 16 class BrowserToolbarModelDelegate : public ChromeToolbarModelDelegate {
17 public: 17 public:
18 explicit BrowserToolbarModelDelegate(Browser* browser); 18 explicit BrowserToolbarModelDelegate(Browser* browser);
19 ~BrowserToolbarModelDelegate() override; 19 ~BrowserToolbarModelDelegate() override;
20 20
21 // ToolbarModelDelegate: 21 // ChromeToolbarModelDelegate:
22 content::WebContents* GetActiveWebContents() const override; 22 content::WebContents* GetActiveWebContents() const override;
23 23
24 private: 24 private:
25 Browser* browser_; 25 Browser* browser_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarModelDelegate); 27 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarModelDelegate);
28 }; 28 };
29 29
30 #endif // CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_ 30 #endif // CHROME_BROWSER_UI_BROWSER_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698