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