| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/debugger/devtools_toggle_action.h" | 21 #include "chrome/browser/debugger/devtools_toggle_action.h" |
| 22 #include "chrome/browser/instant/instant_delegate.h" | 22 #include "chrome/browser/instant/instant_delegate.h" |
| 23 #include "chrome/browser/prefs/pref_member.h" | 23 #include "chrome/browser/prefs/pref_member.h" |
| 24 #include "chrome/browser/sessions/session_id.h" | 24 #include "chrome/browser/sessions/session_id.h" |
| 25 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 25 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 26 #include "chrome/browser/sync/profile_sync_service_observer.h" | 26 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 27 #include "chrome/browser/tabs/tab_handler.h" | 27 #include "chrome/browser/tabs/tab_handler.h" |
| 28 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove | 28 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove |
| 29 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove | 29 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove |
| 30 #include "chrome/browser/ui/browser_navigator.h" | 30 #include "chrome/browser/ui/browser_navigator.h" |
| 31 #include "chrome/browser/ui/content_settings/content_settings_tab_helper_delegat
e.h" |
| 31 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" | 32 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" |
| 32 #include "chrome/browser/ui/shell_dialogs.h" | 33 #include "chrome/browser/ui/shell_dialogs.h" |
| 33 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" | 34 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" |
| 34 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 35 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
| 35 #include "chrome/common/extensions/extension_constants.h" | 36 #include "chrome/common/extensions/extension_constants.h" |
| 36 #include "content/browser/tab_contents/page_navigator.h" | 37 #include "content/browser/tab_contents/page_navigator.h" |
| 37 #include "content/browser/tab_contents/tab_contents_delegate.h" | 38 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 38 #include "content/common/notification_registrar.h" | 39 #include "content/common/notification_registrar.h" |
| 39 #include "content/common/page_transition_types.h" | 40 #include "content/common/page_transition_types.h" |
| 40 #include "content/common/page_zoom.h" | 41 #include "content/common/page_zoom.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 55 class TabStripModel; | 56 class TabStripModel; |
| 56 struct WebApplicationInfo; | 57 struct WebApplicationInfo; |
| 57 namespace gfx { | 58 namespace gfx { |
| 58 class Point; | 59 class Point; |
| 59 } | 60 } |
| 60 | 61 |
| 61 class Browser : public TabHandlerDelegate, | 62 class Browser : public TabHandlerDelegate, |
| 62 public TabContentsDelegate, | 63 public TabContentsDelegate, |
| 63 public TabContentsWrapperDelegate, | 64 public TabContentsWrapperDelegate, |
| 64 public SearchEngineTabHelperDelegate, | 65 public SearchEngineTabHelperDelegate, |
| 66 public ContentSettingsTabHelperDelegate, |
| 65 public PageNavigator, | 67 public PageNavigator, |
| 66 public CommandUpdater::CommandUpdaterDelegate, | 68 public CommandUpdater::CommandUpdaterDelegate, |
| 67 public NotificationObserver, | 69 public NotificationObserver, |
| 68 public SelectFileDialog::Listener, | 70 public SelectFileDialog::Listener, |
| 69 public TabRestoreServiceObserver, | 71 public TabRestoreServiceObserver, |
| 70 public ProfileSyncServiceObserver, | 72 public ProfileSyncServiceObserver, |
| 71 public InstantDelegate { | 73 public InstantDelegate { |
| 72 public: | 74 public: |
| 73 // SessionService::WindowType mirrors these values. If you add to this | 75 // SessionService::WindowType mirrors these values. If you add to this |
| 74 // enum, look at SessionService::WindowType to see if it needs to be | 76 // enum, look at SessionService::WindowType to see if it needs to be |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 const NavigationEntry::SSLStatus& ssl, | 804 const NavigationEntry::SSLStatus& ssl, |
| 803 bool show_history); | 805 bool show_history); |
| 804 virtual void ViewSourceForTab(TabContents* source, const GURL& page_url); | 806 virtual void ViewSourceForTab(TabContents* source, const GURL& page_url); |
| 805 virtual void ViewSourceForFrame(TabContents* source, | 807 virtual void ViewSourceForFrame(TabContents* source, |
| 806 const GURL& frame_url, | 808 const GURL& frame_url, |
| 807 const std::string& frame_content_state); | 809 const std::string& frame_content_state); |
| 808 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 810 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 809 bool* is_keyboard_shortcut); | 811 bool* is_keyboard_shortcut); |
| 810 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 812 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 811 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); | 813 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); |
| 812 virtual void ShowContentSettingsPage(ContentSettingsType content_type); | |
| 813 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents); | |
| 814 virtual bool ShouldAddNavigationToHistory( | 814 virtual bool ShouldAddNavigationToHistory( |
| 815 const history::HistoryAddPageArgs& add_page_args, | 815 const history::HistoryAddPageArgs& add_page_args, |
| 816 NavigationType::Type navigation_type); | 816 NavigationType::Type navigation_type); |
| 817 virtual void ContentRestrictionsChanged(TabContents* source); | 817 virtual void ContentRestrictionsChanged(TabContents* source); |
| 818 virtual void WorkerCrashed(); | 818 virtual void WorkerCrashed(); |
| 819 | 819 |
| 820 // Overridden from TabContentsWrapperDelegate: | 820 // Overridden from TabContentsWrapperDelegate: |
| 821 virtual void URLStarredChanged(TabContentsWrapper* source, | 821 virtual void URLStarredChanged(TabContentsWrapper* source, |
| 822 bool starred) OVERRIDE; | 822 bool starred) OVERRIDE; |
| 823 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, | 823 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, |
| 824 int32 page_id) OVERRIDE; | 824 int32 page_id) OVERRIDE; |
| 825 virtual void OnInstallApplication( | 825 virtual void OnInstallApplication( |
| 826 TabContentsWrapper* source, | 826 TabContentsWrapper* source, |
| 827 const WebApplicationInfo& app_info) OVERRIDE; | 827 const WebApplicationInfo& app_info) OVERRIDE; |
| 828 | 828 |
| 829 // Overridden from SearchEngineTabHelperDelegate: | 829 // Overridden from SearchEngineTabHelperDelegate: |
| 830 virtual void ConfirmSetDefaultSearchProvider( | 830 virtual void ConfirmSetDefaultSearchProvider( |
| 831 TabContents* tab_contents, | 831 TabContents* tab_contents, |
| 832 TemplateURL* template_url, | 832 TemplateURL* template_url, |
| 833 TemplateURLModel* template_url_model) OVERRIDE; | 833 TemplateURLModel* template_url_model) OVERRIDE; |
| 834 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 834 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 835 Profile* profile) OVERRIDE; | 835 Profile* profile) OVERRIDE; |
| 836 | 836 |
| 837 // Overridden from ContentSettingsTabHelperDelegate: |
| 838 virtual TabContentsWrapper* GetConstrainingContents( |
| 839 TabContentsWrapper* source) OVERRIDE; |
| 840 virtual void ShowContentSettingsPage( |
| 841 ContentSettingsType content_type) OVERRIDE; |
| 842 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents) OVERRIDE; |
| 843 |
| 837 // Overridden from SelectFileDialog::Listener: | 844 // Overridden from SelectFileDialog::Listener: |
| 838 virtual void FileSelected(const FilePath& path, int index, void* params); | 845 virtual void FileSelected(const FilePath& path, int index, void* params); |
| 839 | 846 |
| 840 // Overridden from NotificationObserver: | 847 // Overridden from NotificationObserver: |
| 841 virtual void Observe(NotificationType type, | 848 virtual void Observe(NotificationType type, |
| 842 const NotificationSource& source, | 849 const NotificationSource& source, |
| 843 const NotificationDetails& details); | 850 const NotificationDetails& details); |
| 844 | 851 |
| 845 // Overridden from ProfileSyncServiceObserver: | 852 // Overridden from ProfileSyncServiceObserver: |
| 846 virtual void OnStateChanged(); | 853 virtual void OnStateChanged(); |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 // Helper which implements the TabRestoreServiceDelegate interface. | 1181 // Helper which implements the TabRestoreServiceDelegate interface. |
| 1175 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; | 1182 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; |
| 1176 | 1183 |
| 1177 scoped_ptr<InstantController> instant_; | 1184 scoped_ptr<InstantController> instant_; |
| 1178 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1185 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1179 | 1186 |
| 1180 DISALLOW_COPY_AND_ASSIGN(Browser); | 1187 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1181 }; | 1188 }; |
| 1182 | 1189 |
| 1183 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1190 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |