| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "chrome/browser/tab_contents/language_state.h" | 31 #include "chrome/browser/tab_contents/language_state.h" |
| 32 #include "chrome/browser/tab_contents/navigation_controller.h" | 32 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 33 #include "chrome/browser/tab_contents/navigation_entry.h" | 33 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 34 #include "chrome/browser/tab_contents/page_navigator.h" | 34 #include "chrome/browser/tab_contents/page_navigator.h" |
| 35 #include "chrome/browser/tab_contents/render_view_host_manager.h" | 35 #include "chrome/browser/tab_contents/render_view_host_manager.h" |
| 36 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" | 36 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" |
| 37 #include "chrome/common/notification_registrar.h" | 37 #include "chrome/common/notification_registrar.h" |
| 38 #include "chrome/common/property_bag.h" | 38 #include "chrome/common/property_bag.h" |
| 39 #include "chrome/common/renderer_preferences.h" | 39 #include "chrome/common/renderer_preferences.h" |
| 40 #include "chrome/common/translate_errors.h" | 40 #include "chrome/common/translate_errors.h" |
| 41 #include "chrome/common/web_apps.h" |
| 41 #include "gfx/native_widget_types.h" | 42 #include "gfx/native_widget_types.h" |
| 42 #include "gfx/rect.h" | 43 #include "gfx/rect.h" |
| 43 #include "net/base/load_states.h" | 44 #include "net/base/load_states.h" |
| 44 #include "webkit/glue/dom_operations.h" | |
| 45 | 45 |
| 46 namespace gfx { | 46 namespace gfx { |
| 47 class Rect; | 47 class Rect; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace history { | 50 namespace history { |
| 51 class HistoryAddPageArgs; | 51 class HistoryAddPageArgs; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace printing { | 54 namespace printing { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 bool waiting_for_response() const { return waiting_for_response_; } | 280 bool waiting_for_response() const { return waiting_for_response_; } |
| 281 | 281 |
| 282 bool is_starred() const { return is_starred_; } | 282 bool is_starred() const { return is_starred_; } |
| 283 | 283 |
| 284 const std::string& encoding() const { return encoding_; } | 284 const std::string& encoding() const { return encoding_; } |
| 285 void set_encoding(const std::string& encoding); | 285 void set_encoding(const std::string& encoding); |
| 286 void reset_encoding() { | 286 void reset_encoding() { |
| 287 encoding_.clear(); | 287 encoding_.clear(); |
| 288 } | 288 } |
| 289 | 289 |
| 290 const webkit_glue::WebApplicationInfo& web_app_info() const { | 290 const WebApplicationInfo& web_app_info() const { |
| 291 return web_app_info_; | 291 return web_app_info_; |
| 292 } | 292 } |
| 293 | 293 |
| 294 const SkBitmap& app_icon() const { return app_icon_; } | 294 const SkBitmap& app_icon() const { return app_icon_; } |
| 295 | 295 |
| 296 // Sets an app icon associated with TabContents and fires an INVALIDATE_TITLE | 296 // Sets an app icon associated with TabContents and fires an INVALIDATE_TITLE |
| 297 // navigation state change to trigger repaint of title. | 297 // navigation state change to trigger repaint of title. |
| 298 void SetAppIcon(const SkBitmap& app_icon); | 298 void SetAppIcon(const SkBitmap& app_icon); |
| 299 | 299 |
| 300 bool displayed_insecure_content() const { | 300 bool displayed_insecure_content() const { |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 virtual void OnUserGesture(); | 863 virtual void OnUserGesture(); |
| 864 virtual void OnFindReply(int request_id, | 864 virtual void OnFindReply(int request_id, |
| 865 int number_of_matches, | 865 int number_of_matches, |
| 866 const gfx::Rect& selection_rect, | 866 const gfx::Rect& selection_rect, |
| 867 int active_match_ordinal, | 867 int active_match_ordinal, |
| 868 bool final_update); | 868 bool final_update); |
| 869 virtual void GoToEntryAtOffset(int offset); | 869 virtual void GoToEntryAtOffset(int offset); |
| 870 virtual void OnMissingPluginStatus(int status); | 870 virtual void OnMissingPluginStatus(int status); |
| 871 virtual void OnCrashedPlugin(const FilePath& plugin_path); | 871 virtual void OnCrashedPlugin(const FilePath& plugin_path); |
| 872 virtual void OnCrashedWorker(); | 872 virtual void OnCrashedWorker(); |
| 873 virtual void OnDidGetApplicationInfo( | 873 virtual void OnDidGetApplicationInfo(int32 page_id, |
| 874 int32 page_id, | 874 const WebApplicationInfo& info); |
| 875 const webkit_glue::WebApplicationInfo& info); | |
| 876 virtual void OnDisabledOutdatedPlugin(const string16& name, | 875 virtual void OnDisabledOutdatedPlugin(const string16& name, |
| 877 const GURL& update_url); | 876 const GURL& update_url); |
| 878 virtual void OnPageContents(const GURL& url, | 877 virtual void OnPageContents(const GURL& url, |
| 879 int renderer_process_id, | 878 int renderer_process_id, |
| 880 int32 page_id, | 879 int32 page_id, |
| 881 const string16& contents, | 880 const string16& contents, |
| 882 const std::string& language, | 881 const std::string& language, |
| 883 bool page_translatable); | 882 bool page_translatable); |
| 884 virtual void OnPageTranslated(int32 page_id, | 883 virtual void OnPageTranslated(int32 page_id, |
| 885 const std::string& original_lang, | 884 const std::string& original_lang, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 // FileSelectHelper, lazily created. | 1114 // FileSelectHelper, lazily created. |
| 1116 scoped_ptr<FileSelectHelper> file_select_helper_; | 1115 scoped_ptr<FileSelectHelper> file_select_helper_; |
| 1117 | 1116 |
| 1118 // Handles drag and drop event forwarding to extensions. | 1117 // Handles drag and drop event forwarding to extensions. |
| 1119 BookmarkDrag* bookmark_drag_; | 1118 BookmarkDrag* bookmark_drag_; |
| 1120 | 1119 |
| 1121 // Handles downloading favicons. | 1120 // Handles downloading favicons. |
| 1122 FavIconHelper fav_icon_helper_; | 1121 FavIconHelper fav_icon_helper_; |
| 1123 | 1122 |
| 1124 // Cached web app info data. | 1123 // Cached web app info data. |
| 1125 webkit_glue::WebApplicationInfo web_app_info_; | 1124 WebApplicationInfo web_app_info_; |
| 1126 | 1125 |
| 1127 // Cached web app icon. | 1126 // Cached web app icon. |
| 1128 SkBitmap app_icon_; | 1127 SkBitmap app_icon_; |
| 1129 | 1128 |
| 1130 // RenderViewHost::ContentSettingsDelegate. | 1129 // RenderViewHost::ContentSettingsDelegate. |
| 1131 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; | 1130 scoped_ptr<TabSpecificContentSettings> content_settings_delegate_; |
| 1132 | 1131 |
| 1133 // Data for loading state ---------------------------------------------------- | 1132 // Data for loading state ---------------------------------------------------- |
| 1134 | 1133 |
| 1135 // Indicates whether we're currently loading a resource. | 1134 // Indicates whether we're currently loading a resource. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 // Content restrictions, used to disable print/copy etc based on content's | 1314 // Content restrictions, used to disable print/copy etc based on content's |
| 1316 // (full-page plugins for now only) permissions. | 1315 // (full-page plugins for now only) permissions. |
| 1317 int content_restrictions_; | 1316 int content_restrictions_; |
| 1318 | 1317 |
| 1319 // --------------------------------------------------------------------------- | 1318 // --------------------------------------------------------------------------- |
| 1320 | 1319 |
| 1321 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1320 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1322 }; | 1321 }; |
| 1323 | 1322 |
| 1324 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1323 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |