| 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 class ClientSideDetectionHost; | 63 class ClientSideDetectionHost; |
| 64 } | 64 } |
| 65 | 65 |
| 66 class AutocompleteHistoryManager; | 66 class AutocompleteHistoryManager; |
| 67 class AutofillManager; | 67 class AutofillManager; |
| 68 class BlockedContentContainer; | 68 class BlockedContentContainer; |
| 69 class WebUI; | 69 class WebUI; |
| 70 class DesktopNotificationHandlerForTC; | 70 class DesktopNotificationHandlerForTC; |
| 71 class DownloadItem; | 71 class DownloadItem; |
| 72 class Extension; | 72 class Extension; |
| 73 class FileSelectHelper; | |
| 74 class InfoBarDelegate; | 73 class InfoBarDelegate; |
| 75 class LoadNotificationDetails; | 74 class LoadNotificationDetails; |
| 76 class OmniboxSearchHint; | 75 class OmniboxSearchHint; |
| 77 class PluginObserver; | 76 class PluginObserver; |
| 78 class Profile; | 77 class Profile; |
| 79 class RenderViewHost; | 78 class RenderViewHost; |
| 80 class SessionStorageNamespace; | 79 class SessionStorageNamespace; |
| 81 class SiteInstance; | 80 class SiteInstance; |
| 82 class SkBitmap; | 81 class SkBitmap; |
| 83 class TabContents; | 82 class TabContents; |
| 84 class TabContentsDelegate; | 83 class TabContentsDelegate; |
| 85 class TabContentsObserver; | 84 class TabContentsObserver; |
| 86 class TabContentsSSLHelper; | 85 class TabContentsSSLHelper; |
| 87 class TabContentsView; | 86 class TabContentsView; |
| 88 class URLPattern; | 87 class URLPattern; |
| 89 struct RendererPreferences; | 88 struct RendererPreferences; |
| 90 struct ThumbnailScore; | 89 struct ThumbnailScore; |
| 91 struct ViewHostMsg_DomMessage_Params; | 90 struct ViewHostMsg_DomMessage_Params; |
| 92 struct ViewHostMsg_FrameNavigate_Params; | 91 struct ViewHostMsg_FrameNavigate_Params; |
| 93 struct ViewHostMsg_RunFileChooser_Params; | |
| 94 struct WebPreferences; | 92 struct WebPreferences; |
| 95 | 93 |
| 96 // Describes what goes in the main content area of a tab. TabContents is | 94 // Describes what goes in the main content area of a tab. TabContents is |
| 97 // the only type of TabContents, and these should be merged together. | 95 // the only type of TabContents, and these should be merged together. |
| 98 class TabContents : public PageNavigator, | 96 class TabContents : public PageNavigator, |
| 99 public NotificationObserver, | 97 public NotificationObserver, |
| 100 public RenderViewHostDelegate, | 98 public RenderViewHostDelegate, |
| 101 public RenderViewHostManager::Delegate, | 99 public RenderViewHostManager::Delegate, |
| 102 public JavaScriptAppModalDialogDelegate, | 100 public JavaScriptAppModalDialogDelegate, |
| 103 public ImageLoadingTracker::Observer, | 101 public ImageLoadingTracker::Observer, |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 const string16& contents, | 790 const string16& contents, |
| 793 const std::string& language, | 791 const std::string& language, |
| 794 bool page_translatable); | 792 bool page_translatable); |
| 795 void OnPageTranslated(int32 page_id, | 793 void OnPageTranslated(int32 page_id, |
| 796 const std::string& original_lang, | 794 const std::string& original_lang, |
| 797 const std::string& translated_lang, | 795 const std::string& translated_lang, |
| 798 TranslateErrors::Type error_type); | 796 TranslateErrors::Type error_type); |
| 799 void OnSetSuggestions(int32 page_id, | 797 void OnSetSuggestions(int32 page_id, |
| 800 const std::vector<std::string>& suggestions); | 798 const std::vector<std::string>& suggestions); |
| 801 void OnInstantSupportDetermined(int32 page_id, bool result); | 799 void OnInstantSupportDetermined(int32 page_id, bool result); |
| 802 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); | |
| 803 | 800 |
| 804 // Changes the IsLoading state and notifies delegate as needed | 801 // Changes the IsLoading state and notifies delegate as needed |
| 805 // |details| is used to provide details on the load that just finished | 802 // |details| is used to provide details on the load that just finished |
| 806 // (but can be null if not applicable). Can be overridden. | 803 // (but can be null if not applicable). Can be overridden. |
| 807 void SetIsLoading(bool is_loading, | 804 void SetIsLoading(bool is_loading, |
| 808 LoadNotificationDetails* details); | 805 LoadNotificationDetails* details); |
| 809 | 806 |
| 810 // Adds the incoming |new_contents| to the |blocked_contents_| container. | 807 // Adds the incoming |new_contents| to the |blocked_contents_| container. |
| 811 void AddPopup(TabContents* new_contents, | 808 void AddPopup(TabContents* new_contents, |
| 812 const gfx::Rect& initial_pos); | 809 const gfx::Rect& initial_pos); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1070 |
| 1074 // AutofillManager. | 1071 // AutofillManager. |
| 1075 scoped_ptr<AutofillManager> autofill_manager_; | 1072 scoped_ptr<AutofillManager> autofill_manager_; |
| 1076 | 1073 |
| 1077 // Handles plugin messages. | 1074 // Handles plugin messages. |
| 1078 scoped_ptr<PluginObserver> plugin_observer_; | 1075 scoped_ptr<PluginObserver> plugin_observer_; |
| 1079 | 1076 |
| 1080 // TabContentsSSLHelper, lazily created. | 1077 // TabContentsSSLHelper, lazily created. |
| 1081 scoped_ptr<TabContentsSSLHelper> ssl_helper_; | 1078 scoped_ptr<TabContentsSSLHelper> ssl_helper_; |
| 1082 | 1079 |
| 1083 // FileSelectHelper, lazily created. | |
| 1084 scoped_ptr<FileSelectHelper> file_select_helper_; | |
| 1085 | |
| 1086 // Handles drag and drop event forwarding to extensions. | 1080 // Handles drag and drop event forwarding to extensions. |
| 1087 BookmarkDrag* bookmark_drag_; | 1081 BookmarkDrag* bookmark_drag_; |
| 1088 | 1082 |
| 1089 // Handles downloading favicons. | 1083 // Handles downloading favicons. |
| 1090 scoped_ptr<FavIconHelper> fav_icon_helper_; | 1084 scoped_ptr<FavIconHelper> fav_icon_helper_; |
| 1091 | 1085 |
| 1092 // Cached web app info data. | 1086 // Cached web app info data. |
| 1093 WebApplicationInfo web_app_info_; | 1087 WebApplicationInfo web_app_info_; |
| 1094 | 1088 |
| 1095 // Cached web app icon. | 1089 // Cached web app icon. |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 ObserverList<TabContentsObserver> observers_; | 1247 ObserverList<TabContentsObserver> observers_; |
| 1254 | 1248 |
| 1255 // Content restrictions, used to disable print/copy etc based on content's | 1249 // Content restrictions, used to disable print/copy etc based on content's |
| 1256 // (full-page plugins for now only) permissions. | 1250 // (full-page plugins for now only) permissions. |
| 1257 int content_restrictions_; | 1251 int content_restrictions_; |
| 1258 | 1252 |
| 1259 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1253 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1260 }; | 1254 }; |
| 1261 | 1255 |
| 1262 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1256 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |