| 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 bool page_translatable); | 793 bool page_translatable); |
| 794 void OnPageTranslated(int32 page_id, | 794 void OnPageTranslated(int32 page_id, |
| 795 const std::string& original_lang, | 795 const std::string& original_lang, |
| 796 const std::string& translated_lang, | 796 const std::string& translated_lang, |
| 797 TranslateErrors::Type error_type); | 797 TranslateErrors::Type error_type); |
| 798 void OnSetSuggestions(int32 page_id, | 798 void OnSetSuggestions(int32 page_id, |
| 799 const std::vector<std::string>& suggestions, | 799 const std::vector<std::string>& suggestions, |
| 800 InstantCompleteBehavior behavior); | 800 InstantCompleteBehavior behavior); |
| 801 void OnInstantSupportDetermined(int32 page_id, bool result); | 801 void OnInstantSupportDetermined(int32 page_id, bool result); |
| 802 | 802 |
| 803 void OnUpdateFaviconURL(int32 page_id, |
| 804 const std::vector<FaviconURL>& candidates); |
| 805 |
| 803 // Changes the IsLoading state and notifies delegate as needed | 806 // Changes the IsLoading state and notifies delegate as needed |
| 804 // |details| is used to provide details on the load that just finished | 807 // |details| is used to provide details on the load that just finished |
| 805 // (but can be null if not applicable). Can be overridden. | 808 // (but can be null if not applicable). Can be overridden. |
| 806 void SetIsLoading(bool is_loading, | 809 void SetIsLoading(bool is_loading, |
| 807 LoadNotificationDetails* details); | 810 LoadNotificationDetails* details); |
| 808 | 811 |
| 809 // Adds the incoming |new_contents| to the |blocked_contents_| container. | 812 // Adds the incoming |new_contents| to the |blocked_contents_| container. |
| 810 void AddPopup(TabContents* new_contents, | 813 void AddPopup(TabContents* new_contents, |
| 811 const gfx::Rect& initial_pos); | 814 const gfx::Rect& initial_pos); |
| 812 | 815 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 | 1078 |
| 1076 // TabContentsSSLHelper, lazily created. | 1079 // TabContentsSSLHelper, lazily created. |
| 1077 scoped_ptr<TabContentsSSLHelper> ssl_helper_; | 1080 scoped_ptr<TabContentsSSLHelper> ssl_helper_; |
| 1078 | 1081 |
| 1079 // Handles drag and drop event forwarding to extensions. | 1082 // Handles drag and drop event forwarding to extensions. |
| 1080 BookmarkDrag* bookmark_drag_; | 1083 BookmarkDrag* bookmark_drag_; |
| 1081 | 1084 |
| 1082 // Handles downloading favicons. | 1085 // Handles downloading favicons. |
| 1083 scoped_ptr<FaviconHelper> favicon_helper_; | 1086 scoped_ptr<FaviconHelper> favicon_helper_; |
| 1084 | 1087 |
| 1088 // Handles downloading touchicons. It is NULL if |
| 1089 // browser_defaults::kEnableTouchIcon is false. |
| 1090 scoped_ptr<FaviconHelper> touch_icon_helper_; |
| 1091 |
| 1085 // Cached web app info data. | 1092 // Cached web app info data. |
| 1086 WebApplicationInfo web_app_info_; | 1093 WebApplicationInfo web_app_info_; |
| 1087 | 1094 |
| 1088 // Cached web app icon. | 1095 // Cached web app icon. |
| 1089 SkBitmap app_icon_; | 1096 SkBitmap app_icon_; |
| 1090 | 1097 |
| 1091 // RenderViewHost::ContentSettingsDelegate. | 1098 // RenderViewHost::ContentSettingsDelegate. |
| 1092 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; | 1099 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; |
| 1093 | 1100 |
| 1094 // Handles desktop notification IPCs. | 1101 // Handles desktop notification IPCs. |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 ObserverList<TabContentsObserver> observers_; | 1253 ObserverList<TabContentsObserver> observers_; |
| 1247 | 1254 |
| 1248 // Content restrictions, used to disable print/copy etc based on content's | 1255 // Content restrictions, used to disable print/copy etc based on content's |
| 1249 // (full-page plugins for now only) permissions. | 1256 // (full-page plugins for now only) permissions. |
| 1250 int content_restrictions_; | 1257 int content_restrictions_; |
| 1251 | 1258 |
| 1252 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1259 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1253 }; | 1260 }; |
| 1254 | 1261 |
| 1255 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1262 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |