| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" | 8 #include "components/toolbar/toolbar_model_delegate.h" |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class NavigationEntry; | 13 class NavigationEntry; |
| 14 class NavigationController; | 14 class NavigationController; |
| 15 class WebContents; |
| 15 } | 16 } |
| 16 | 17 |
| 17 // Partial implementation of ToolbarModelDelegate using //chrome API. | 18 // Partial implementation of ToolbarModelDelegate using //chrome API. |
| 18 class ChromeToolbarModelDelegate : public ToolbarModelDelegate { | 19 class ChromeToolbarModelDelegate : public ToolbarModelDelegate { |
| 19 public: | 20 public: |
| 20 // Returns active WebContents. | 21 // Returns active WebContents. |
| 21 virtual content::WebContents* GetActiveWebContents() const = 0; | 22 virtual content::WebContents* GetActiveWebContents() const = 0; |
| 22 | 23 |
| 23 protected: | 24 protected: |
| 24 ~ChromeToolbarModelDelegate() override; | 25 ~ChromeToolbarModelDelegate() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 | 43 |
| 43 // Helper method to extract the navigation entry from the navigation | 44 // Helper method to extract the navigation entry from the navigation |
| 44 // controller. | 45 // controller. |
| 45 content::NavigationEntry* GetNavigationEntry() const; | 46 content::NavigationEntry* GetNavigationEntry() const; |
| 46 | 47 |
| 47 // Helper method to extract the profile from the navigation controller. | 48 // Helper method to extract the profile from the navigation controller. |
| 48 Profile* GetProfile() const; | 49 Profile* GetProfile() const; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 52 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |