| 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 11 matching lines...) Expand all Loading... |
| 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/prefs/pref_change_registrar.h" | 24 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 25 #include "chrome/browser/sessions/session_id.h" | 25 #include "chrome/browser/sessions/session_id.h" |
| 26 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 26 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 27 #include "chrome/browser/sync/profile_sync_service_observer.h" | 27 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 28 #include "chrome/browser/tabs/tab_handler.h" | 28 #include "chrome/browser/tabs/tab_handler.h" |
| 29 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove | 29 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove |
| 30 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove | 30 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove |
| 31 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" | 31 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" |
| 32 #include "chrome/browser/ui/bookmarks/bookmarks_tab_helper_delegate.h" | 32 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" |
| 33 #include "chrome/browser/ui/browser_navigator.h" | 33 #include "chrome/browser/ui/browser_navigator.h" |
| 34 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" | 34 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" |
| 35 #include "chrome/browser/ui/shell_dialogs.h" | 35 #include "chrome/browser/ui/shell_dialogs.h" |
| 36 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" | 36 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" |
| 37 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 37 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
| 38 #include "chrome/common/extensions/extension_constants.h" | 38 #include "chrome/common/extensions/extension_constants.h" |
| 39 #include "content/browser/tab_contents/page_navigator.h" | 39 #include "content/browser/tab_contents/page_navigator.h" |
| 40 #include "content/browser/tab_contents/tab_contents_delegate.h" | 40 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 41 #include "content/common/notification_registrar.h" | 41 #include "content/common/notification_registrar.h" |
| 42 #include "content/common/page_transition_types.h" | 42 #include "content/common/page_transition_types.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 struct WebApplicationInfo; | 59 struct WebApplicationInfo; |
| 60 namespace gfx { | 60 namespace gfx { |
| 61 class Point; | 61 class Point; |
| 62 } | 62 } |
| 63 | 63 |
| 64 class Browser : public TabHandlerDelegate, | 64 class Browser : public TabHandlerDelegate, |
| 65 public TabContentsDelegate, | 65 public TabContentsDelegate, |
| 66 public TabContentsWrapperDelegate, | 66 public TabContentsWrapperDelegate, |
| 67 public SearchEngineTabHelperDelegate, | 67 public SearchEngineTabHelperDelegate, |
| 68 public BlockedContentTabHelperDelegate, | 68 public BlockedContentTabHelperDelegate, |
| 69 public BookmarksTabHelperDelegate, | 69 public BookmarkTabHelperDelegate, |
| 70 public PageNavigator, | 70 public PageNavigator, |
| 71 public CommandUpdater::CommandUpdaterDelegate, | 71 public CommandUpdater::CommandUpdaterDelegate, |
| 72 public NotificationObserver, | 72 public NotificationObserver, |
| 73 public SelectFileDialog::Listener, | 73 public SelectFileDialog::Listener, |
| 74 public TabRestoreServiceObserver, | 74 public TabRestoreServiceObserver, |
| 75 public ProfileSyncServiceObserver, | 75 public ProfileSyncServiceObserver, |
| 76 public InstantDelegate { | 76 public InstantDelegate { |
| 77 public: | 77 public: |
| 78 // SessionService::WindowType mirrors these values. If you add to this | 78 // SessionService::WindowType mirrors these values. If you add to this |
| 79 // enum, look at SessionService::WindowType to see if it needs to be | 79 // enum, look at SessionService::WindowType to see if it needs to be |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 TabContents* tab_contents, | 846 TabContents* tab_contents, |
| 847 TemplateURL* template_url, | 847 TemplateURL* template_url, |
| 848 TemplateURLModel* template_url_model) OVERRIDE; | 848 TemplateURLModel* template_url_model) OVERRIDE; |
| 849 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 849 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 850 Profile* profile) OVERRIDE; | 850 Profile* profile) OVERRIDE; |
| 851 | 851 |
| 852 // Overridden from BlockedContentTabHelperDelegate: | 852 // Overridden from BlockedContentTabHelperDelegate: |
| 853 virtual TabContentsWrapper* GetConstrainingContentsWrapper( | 853 virtual TabContentsWrapper* GetConstrainingContentsWrapper( |
| 854 TabContentsWrapper* source) OVERRIDE; | 854 TabContentsWrapper* source) OVERRIDE; |
| 855 | 855 |
| 856 // Overridden from BookmarksTabHelperDelegate: | 856 // Overridden from BookmarkTabHelperDelegate: |
| 857 virtual void URLStarredChanged(TabContentsWrapper* source, | 857 virtual void URLStarredChanged(TabContentsWrapper* source, |
| 858 bool starred) OVERRIDE; | 858 bool starred) OVERRIDE; |
| 859 | 859 |
| 860 // Overridden from SelectFileDialog::Listener: | 860 // Overridden from SelectFileDialog::Listener: |
| 861 virtual void FileSelected(const FilePath& path, int index, void* params); | 861 virtual void FileSelected(const FilePath& path, int index, void* params); |
| 862 | 862 |
| 863 // Overridden from NotificationObserver: | 863 // Overridden from NotificationObserver: |
| 864 virtual void Observe(NotificationType type, | 864 virtual void Observe(NotificationType type, |
| 865 const NotificationSource& source, | 865 const NotificationSource& source, |
| 866 const NotificationDetails& details); | 866 const NotificationDetails& details); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 // Helper which implements the TabRestoreServiceDelegate interface. | 1207 // Helper which implements the TabRestoreServiceDelegate interface. |
| 1208 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; | 1208 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; |
| 1209 | 1209 |
| 1210 scoped_ptr<InstantController> instant_; | 1210 scoped_ptr<InstantController> instant_; |
| 1211 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; | 1211 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; |
| 1212 | 1212 |
| 1213 DISALLOW_COPY_AND_ASSIGN(Browser); | 1213 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1214 }; | 1214 }; |
| 1215 | 1215 |
| 1216 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1216 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |