OLD | NEW |
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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 // Overridden from content::NotificationObserver: | 714 // Overridden from content::NotificationObserver: |
715 virtual void Observe(int type, | 715 virtual void Observe(int type, |
716 const content::NotificationSource& source, | 716 const content::NotificationSource& source, |
717 const content::NotificationDetails& details) override; | 717 const content::NotificationDetails& details) override; |
718 | 718 |
719 // Overridden from extensions::ExtensionRegistryObserver: | 719 // Overridden from extensions::ExtensionRegistryObserver: |
720 virtual void OnExtensionUninstalled( | 720 virtual void OnExtensionUninstalled( |
721 content::BrowserContext* browser_context, | 721 content::BrowserContext* browser_context, |
722 const extensions::Extension* extension, | 722 const extensions::Extension* extension, |
723 extensions::UninstallReason reason) OVERRIDE; | 723 extensions::UninstallReason reason) override; |
724 virtual void OnExtensionLoaded( | 724 virtual void OnExtensionLoaded( |
725 content::BrowserContext* browser_context, | 725 content::BrowserContext* browser_context, |
726 const extensions::Extension* extension) OVERRIDE; | 726 const extensions::Extension* extension) override; |
727 virtual void OnExtensionUnloaded( | 727 virtual void OnExtensionUnloaded( |
728 content::BrowserContext* browser_context, | 728 content::BrowserContext* browser_context, |
729 const extensions::Extension* extension, | 729 const extensions::Extension* extension, |
730 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; | 730 extensions::UnloadedExtensionInfo::Reason reason) override; |
731 | 731 |
732 // Command and state updating /////////////////////////////////////////////// | 732 // Command and state updating /////////////////////////////////////////////// |
733 | 733 |
734 // Handle changes to kDevTools preference. | 734 // Handle changes to kDevTools preference. |
735 void OnDevToolsDisabledChanged(); | 735 void OnDevToolsDisabledChanged(); |
736 | 736 |
737 // UI update coalescing and handling //////////////////////////////////////// | 737 // UI update coalescing and handling //////////////////////////////////////// |
738 | 738 |
739 // Asks the toolbar (and as such the location bar) to update its state to | 739 // Asks the toolbar (and as such the location bar) to update its state to |
740 // reflect the current tab's current URL, security state, etc. | 740 // reflect the current tab's current URL, security state, etc. |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 // The following factory is used for chrome update coalescing. | 979 // The following factory is used for chrome update coalescing. |
980 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 980 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
981 | 981 |
982 // The following factory is used to close the frame at a later time. | 982 // The following factory is used to close the frame at a later time. |
983 base::WeakPtrFactory<Browser> weak_factory_; | 983 base::WeakPtrFactory<Browser> weak_factory_; |
984 | 984 |
985 DISALLOW_COPY_AND_ASSIGN(Browser); | 985 DISALLOW_COPY_AND_ASSIGN(Browser); |
986 }; | 986 }; |
987 | 987 |
988 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 988 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |