| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 namespace webkit_glue { | 62 namespace webkit_glue { |
| 63 struct WebApplicationInfo; | 63 struct WebApplicationInfo; |
| 64 } | 64 } |
| 65 | 65 |
| 66 namespace IPC { | 66 namespace IPC { |
| 67 class Message; | 67 class Message; |
| 68 } | 68 } |
| 69 | 69 |
| 70 class FormFieldHistoryManager; | 70 class AutoFillManager; |
| 71 class BlockedPopupContainer; | 71 class BlockedPopupContainer; |
| 72 class DOMUI; | 72 class DOMUI; |
| 73 class DownloadItem; | 73 class DownloadItem; |
| 74 class FormFieldHistoryManager; |
| 74 class LoadNotificationDetails; | 75 class LoadNotificationDetails; |
| 75 class OmniboxSearchHint; | 76 class OmniboxSearchHint; |
| 76 class PasswordManager; | 77 class PasswordManager; |
| 77 class PluginInstaller; | 78 class PluginInstaller; |
| 78 class Profile; | 79 class Profile; |
| 79 struct RendererPreferences; | 80 struct RendererPreferences; |
| 80 class RenderViewHost; | 81 class RenderViewHost; |
| 81 class TabContentsDelegate; | 82 class TabContentsDelegate; |
| 82 class TabContentsFactory; | 83 class TabContentsFactory; |
| 83 class SkBitmap; | 84 class SkBitmap; |
| 84 class SiteInstance; | 85 class SiteInstance; |
| 86 class TabContents; |
| 85 class TabContentsView; | 87 class TabContentsView; |
| 86 struct ThumbnailScore; | 88 struct ThumbnailScore; |
| 87 struct ViewHostMsg_FrameNavigate_Params; | 89 struct ViewHostMsg_FrameNavigate_Params; |
| 88 struct ViewHostMsg_DidPrintPage_Params; | 90 struct ViewHostMsg_DidPrintPage_Params; |
| 89 class TabContents; | |
| 90 | 91 |
| 91 // Describes what goes in the main content area of a tab. TabContents is | 92 // Describes what goes in the main content area of a tab. TabContents is |
| 92 // the only type of TabContents, and these should be merged together. | 93 // the only type of TabContents, and these should be merged together. |
| 93 class TabContents : public PageNavigator, | 94 class TabContents : public PageNavigator, |
| 94 public NotificationObserver, | 95 public NotificationObserver, |
| 95 public RenderViewHostDelegate, | 96 public RenderViewHostDelegate, |
| 96 public RenderViewHostDelegate::BrowserIntegration, | 97 public RenderViewHostDelegate::BrowserIntegration, |
| 97 public RenderViewHostDelegate::Resource, | 98 public RenderViewHostDelegate::Resource, |
| 98 public RenderViewHostManager::Delegate, | 99 public RenderViewHostManager::Delegate, |
| 99 public SelectFileDialog::Listener { | 100 public SelectFileDialog::Listener { |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 virtual RenderViewHostDelegate::RendererManagement* | 830 virtual RenderViewHostDelegate::RendererManagement* |
| 830 GetRendererManagementDelegate(); | 831 GetRendererManagementDelegate(); |
| 831 virtual RenderViewHostDelegate::BrowserIntegration* | 832 virtual RenderViewHostDelegate::BrowserIntegration* |
| 832 GetBrowserIntegrationDelegate(); | 833 GetBrowserIntegrationDelegate(); |
| 833 virtual RenderViewHostDelegate::Resource* GetResourceDelegate(); | 834 virtual RenderViewHostDelegate::Resource* GetResourceDelegate(); |
| 834 virtual RenderViewHostDelegate::Save* GetSaveDelegate(); | 835 virtual RenderViewHostDelegate::Save* GetSaveDelegate(); |
| 835 virtual RenderViewHostDelegate::Printing* GetPrintingDelegate(); | 836 virtual RenderViewHostDelegate::Printing* GetPrintingDelegate(); |
| 836 virtual RenderViewHostDelegate::FavIcon* GetFavIconDelegate(); | 837 virtual RenderViewHostDelegate::FavIcon* GetFavIconDelegate(); |
| 837 virtual RenderViewHostDelegate::FormFieldHistory* | 838 virtual RenderViewHostDelegate::FormFieldHistory* |
| 838 GetFormFieldHistoryDelegate(); | 839 GetFormFieldHistoryDelegate(); |
| 840 virtual RenderViewHostDelegate::AutoFill* GetAutoFillDelegate(); |
| 839 virtual TabContents* GetAsTabContents(); | 841 virtual TabContents* GetAsTabContents(); |
| 840 virtual void AddBlockedNotice(const GURL& url, const string16& reason); | 842 virtual void AddBlockedNotice(const GURL& url, const string16& reason); |
| 841 virtual ViewType::Type GetRenderViewType() const; | 843 virtual ViewType::Type GetRenderViewType() const; |
| 842 virtual int GetBrowserWindowID() const; | 844 virtual int GetBrowserWindowID() const; |
| 843 virtual void RenderViewCreated(RenderViewHost* render_view_host); | 845 virtual void RenderViewCreated(RenderViewHost* render_view_host); |
| 844 virtual void RenderViewReady(RenderViewHost* render_view_host); | 846 virtual void RenderViewReady(RenderViewHost* render_view_host); |
| 845 virtual void RenderViewGone(RenderViewHost* render_view_host); | 847 virtual void RenderViewGone(RenderViewHost* render_view_host); |
| 846 virtual void RenderViewDeleted(RenderViewHost* render_view_host); | 848 virtual void RenderViewDeleted(RenderViewHost* render_view_host); |
| 847 virtual void DidNavigate(RenderViewHost* render_view_host, | 849 virtual void DidNavigate(RenderViewHost* render_view_host, |
| 848 const ViewHostMsg_FrameNavigate_Params& params); | 850 const ViewHostMsg_FrameNavigate_Params& params); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 scoped_refptr<SavePackage> save_package_; | 987 scoped_refptr<SavePackage> save_package_; |
| 986 | 988 |
| 987 // Tracks our pending CancelableRequests. This maps pending requests to | 989 // Tracks our pending CancelableRequests. This maps pending requests to |
| 988 // page IDs so that we know whether a given callback still applies. The | 990 // page IDs so that we know whether a given callback still applies. The |
| 989 // page ID -1 means no page ID was set. | 991 // page ID -1 means no page ID was set. |
| 990 CancelableRequestConsumerT<int32, -1> cancelable_consumer_; | 992 CancelableRequestConsumerT<int32, -1> cancelable_consumer_; |
| 991 | 993 |
| 992 // FormFieldHistoryManager, lazily created. | 994 // FormFieldHistoryManager, lazily created. |
| 993 scoped_ptr<FormFieldHistoryManager> form_field_history_manager_; | 995 scoped_ptr<FormFieldHistoryManager> form_field_history_manager_; |
| 994 | 996 |
| 997 // AutoFillManager, lazily created. |
| 998 scoped_ptr<AutoFillManager> autofill_manager_; |
| 999 |
| 995 // PasswordManager, lazily created. | 1000 // PasswordManager, lazily created. |
| 996 scoped_ptr<PasswordManager> password_manager_; | 1001 scoped_ptr<PasswordManager> password_manager_; |
| 997 | 1002 |
| 998 // PluginInstaller, lazily created. | 1003 // PluginInstaller, lazily created. |
| 999 scoped_ptr<PluginInstaller> plugin_installer_; | 1004 scoped_ptr<PluginInstaller> plugin_installer_; |
| 1000 | 1005 |
| 1001 // Handles downloading favicons. | 1006 // Handles downloading favicons. |
| 1002 FavIconHelper fav_icon_helper_; | 1007 FavIconHelper fav_icon_helper_; |
| 1003 | 1008 |
| 1004 // Dialog box used for choosing files to upload from file form fields. | 1009 // Dialog box used for choosing files to upload from file form fields. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 | 1162 |
| 1158 // The time that we started to close the tab. | 1163 // The time that we started to close the tab. |
| 1159 base::TimeTicks tab_close_start_time_; | 1164 base::TimeTicks tab_close_start_time_; |
| 1160 | 1165 |
| 1161 // --------------------------------------------------------------------------- | 1166 // --------------------------------------------------------------------------- |
| 1162 | 1167 |
| 1163 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1168 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1164 }; | 1169 }; |
| 1165 | 1170 |
| 1166 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1171 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |