| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 // Called by browser::Navigate() when a navigation has occurred in a tab in | 740 // Called by browser::Navigate() when a navigation has occurred in a tab in |
| 741 // this Browser. Updates the UI for the start of this navigation. | 741 // this Browser. Updates the UI for the start of this navigation. |
| 742 void UpdateUIForNavigationInTab(TabContentsWrapper* contents, | 742 void UpdateUIForNavigationInTab(TabContentsWrapper* contents, |
| 743 content::PageTransition transition, | 743 content::PageTransition transition, |
| 744 bool user_initiated); | 744 bool user_initiated); |
| 745 | 745 |
| 746 // Called by browser::Navigate() to retrieve the home page if no URL is | 746 // Called by browser::Navigate() to retrieve the home page if no URL is |
| 747 // specified. | 747 // specified. |
| 748 GURL GetHomePage() const; | 748 GURL GetHomePage() const; |
| 749 | 749 |
| 750 // A static version of the above method. |
| 751 static GURL GetHomePageForProfile(Profile* profile); |
| 752 |
| 750 // Shows the cookies collected in the tab contents wrapper. | 753 // Shows the cookies collected in the tab contents wrapper. |
| 751 void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); | 754 void ShowCollectedCookiesDialog(TabContentsWrapper* wrapper); |
| 752 | 755 |
| 753 // Interface implementations //////////////////////////////////////////////// | 756 // Interface implementations //////////////////////////////////////////////// |
| 754 | 757 |
| 755 // Overridden from PageNavigator: | 758 // Overridden from PageNavigator: |
| 756 // Deprecated. Please use the one-argument variant instead. | 759 // Deprecated. Please use the one-argument variant instead. |
| 757 // TODO(adriansc): Remove this method once refactoring changed all call sites. | 760 // TODO(adriansc): Remove this method once refactoring changed all call sites. |
| 758 virtual TabContents* OpenURL(const GURL& url, | 761 virtual TabContents* OpenURL(const GURL& url, |
| 759 const GURL& referrer, | 762 const GURL& referrer, |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 | 1458 |
| 1456 MouseLockState mouse_lock_state_; | 1459 MouseLockState mouse_lock_state_; |
| 1457 | 1460 |
| 1458 // True if the browser window has been shown at least once. | 1461 // True if the browser window has been shown at least once. |
| 1459 bool window_has_shown_; | 1462 bool window_has_shown_; |
| 1460 | 1463 |
| 1461 DISALLOW_COPY_AND_ASSIGN(Browser); | 1464 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1462 }; | 1465 }; |
| 1463 | 1466 |
| 1464 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1467 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |