| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "chrome/browser/devtools/devtools_toggle_action.h" | 22 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 23 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 23 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 24 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" | 24 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" |
| 25 #include "chrome/browser/ui/browser_navigator.h" | 25 #include "chrome/browser/ui/browser_navigator.h" |
| 26 #include "chrome/browser/ui/browser_navigator_params.h" | 26 #include "chrome/browser/ui/browser_navigator_params.h" |
| 27 #include "chrome/browser/ui/chrome_bubble_manager.h" | 27 #include "chrome/browser/ui/chrome_bubble_manager.h" |
| 28 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" | 28 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" |
| 29 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" | 29 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
| 30 #include "chrome/browser/ui/profile_chooser_constants.h" | 30 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 31 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" | |
| 32 #include "chrome/browser/ui/signin_view_controller.h" | 31 #include "chrome/browser/ui/signin_view_controller.h" |
| 33 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 32 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
| 34 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 33 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 35 #include "components/content_settings/core/common/content_settings.h" | 34 #include "components/content_settings/core/common/content_settings.h" |
| 36 #include "components/content_settings/core/common/content_settings_types.h" | 35 #include "components/content_settings/core/common/content_settings_types.h" |
| 37 #include "components/prefs/pref_change_registrar.h" | 36 #include "components/prefs/pref_change_registrar.h" |
| 38 #include "components/sessions/core/session_id.h" | 37 #include "components/sessions/core/session_id.h" |
| 39 #include "components/toolbar/toolbar_model.h" | 38 #include "components/toolbar/toolbar_model.h" |
| 40 #include "components/translate/content/browser/content_translate_driver.h" | 39 #include "components/translate/content/browser/content_translate_driver.h" |
| 41 #include "components/zoom/zoom_observer.h" | 40 #include "components/zoom/zoom_observer.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 struct SelectedFileInfo; | 98 struct SelectedFileInfo; |
| 100 } | 99 } |
| 101 | 100 |
| 102 namespace web_modal { | 101 namespace web_modal { |
| 103 class WebContentsModalDialogHost; | 102 class WebContentsModalDialogHost; |
| 104 } | 103 } |
| 105 | 104 |
| 106 class Browser : public TabStripModelObserver, | 105 class Browser : public TabStripModelObserver, |
| 107 public content::WebContentsDelegate, | 106 public content::WebContentsDelegate, |
| 108 public CoreTabHelperDelegate, | 107 public CoreTabHelperDelegate, |
| 109 public SearchTabHelperDelegate, | |
| 110 public ChromeWebModalDialogManagerDelegate, | 108 public ChromeWebModalDialogManagerDelegate, |
| 111 public BookmarkTabHelperDelegate, | 109 public BookmarkTabHelperDelegate, |
| 112 public zoom::ZoomObserver, | 110 public zoom::ZoomObserver, |
| 113 public content::PageNavigator, | 111 public content::PageNavigator, |
| 114 public content::NotificationObserver, | 112 public content::NotificationObserver, |
| 115 #if BUILDFLAG(ENABLE_EXTENSIONS) | 113 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 116 public extensions::ExtensionRegistryObserver, | 114 public extensions::ExtensionRegistryObserver, |
| 117 #endif | 115 #endif |
| 118 public translate::ContentTranslateDriver::Observer, | 116 public translate::ContentTranslateDriver::Observer, |
| 119 public ui::SelectFileDialog::Listener { | 117 public ui::SelectFileDialog::Listener { |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 | 710 |
| 713 // Overridden from CoreTabHelperDelegate: | 711 // Overridden from CoreTabHelperDelegate: |
| 714 // Note that the caller is responsible for deleting |old_contents|. | 712 // Note that the caller is responsible for deleting |old_contents|. |
| 715 void SwapTabContents(content::WebContents* old_contents, | 713 void SwapTabContents(content::WebContents* old_contents, |
| 716 content::WebContents* new_contents, | 714 content::WebContents* new_contents, |
| 717 bool did_start_load, | 715 bool did_start_load, |
| 718 bool did_finish_load) override; | 716 bool did_finish_load) override; |
| 719 bool CanReloadContents(content::WebContents* web_contents) const override; | 717 bool CanReloadContents(content::WebContents* web_contents) const override; |
| 720 bool CanSaveContents(content::WebContents* web_contents) const override; | 718 bool CanSaveContents(content::WebContents* web_contents) const override; |
| 721 | 719 |
| 722 // Overridden from SearchTabHelperDelegate: | |
| 723 OmniboxView* GetOmniboxView() override; | |
| 724 | |
| 725 // Overridden from WebContentsModalDialogManagerDelegate: | 720 // Overridden from WebContentsModalDialogManagerDelegate: |
| 726 void SetWebContentsBlocked(content::WebContents* web_contents, | 721 void SetWebContentsBlocked(content::WebContents* web_contents, |
| 727 bool blocked) override; | 722 bool blocked) override; |
| 728 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 723 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
| 729 override; | 724 override; |
| 730 | 725 |
| 731 // Overridden from BookmarkTabHelperDelegate: | 726 // Overridden from BookmarkTabHelperDelegate: |
| 732 void URLStarredChanged(content::WebContents* web_contents, | 727 void URLStarredChanged(content::WebContents* web_contents, |
| 733 bool starred) override; | 728 bool starred) override; |
| 734 | 729 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 // The following factory is used for chrome update coalescing. | 1023 // The following factory is used for chrome update coalescing. |
| 1029 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1024 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
| 1030 | 1025 |
| 1031 // The following factory is used to close the frame at a later time. | 1026 // The following factory is used to close the frame at a later time. |
| 1032 base::WeakPtrFactory<Browser> weak_factory_; | 1027 base::WeakPtrFactory<Browser> weak_factory_; |
| 1033 | 1028 |
| 1034 DISALLOW_COPY_AND_ASSIGN(Browser); | 1029 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1035 }; | 1030 }; |
| 1036 | 1031 |
| 1037 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1032 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |