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 #include "chrome/browser/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "app/text_elider.h" | 9 #include "app/text_elider.h" |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/google_util.h" | 37 #include "chrome/browser/google_util.h" |
38 #include "chrome/browser/host_content_settings_map.h" | 38 #include "chrome/browser/host_content_settings_map.h" |
39 #include "chrome/browser/hung_renderer_dialog.h" | 39 #include "chrome/browser/hung_renderer_dialog.h" |
40 #include "chrome/browser/message_box_handler.h" | 40 #include "chrome/browser/message_box_handler.h" |
41 #include "chrome/browser/load_from_memory_cache_details.h" | 41 #include "chrome/browser/load_from_memory_cache_details.h" |
42 #include "chrome/browser/load_notification_details.h" | 42 #include "chrome/browser/load_notification_details.h" |
43 #include "chrome/browser/metrics/metric_event_duration_details.h" | 43 #include "chrome/browser/metrics/metric_event_duration_details.h" |
44 #include "chrome/browser/modal_html_dialog_delegate.h" | 44 #include "chrome/browser/modal_html_dialog_delegate.h" |
45 #include "chrome/browser/omnibox_search_hint.h" | 45 #include "chrome/browser/omnibox_search_hint.h" |
46 #include "chrome/browser/password_manager/password_manager.h" | 46 #include "chrome/browser/password_manager/password_manager.h" |
| 47 #include "chrome/browser/platform_util.h" |
47 #include "chrome/browser/plugin_installer.h" | 48 #include "chrome/browser/plugin_installer.h" |
48 #include "chrome/browser/pref_service.h" | 49 #include "chrome/browser/pref_service.h" |
49 #include "chrome/browser/profile.h" | 50 #include "chrome/browser/profile.h" |
50 #include "chrome/browser/renderer_host/render_process_host.h" | 51 #include "chrome/browser/renderer_host/render_process_host.h" |
51 #include "chrome/browser/renderer_host/render_view_host.h" | 52 #include "chrome/browser/renderer_host/render_view_host.h" |
52 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 53 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
53 #include "chrome/browser/renderer_host/resource_request_details.h" | 54 #include "chrome/browser/renderer_host/resource_request_details.h" |
54 #include "chrome/browser/renderer_host/site_instance.h" | 55 #include "chrome/browser/renderer_host/site_instance.h" |
55 #include "chrome/browser/renderer_host/web_cache_manager.h" | 56 #include "chrome/browser/renderer_host/web_cache_manager.h" |
56 #include "chrome/browser/renderer_preferences_util.h" | 57 #include "chrome/browser/renderer_preferences_util.h" |
57 #include "chrome/browser/search_engines/template_url_fetcher.h" | 58 #include "chrome/browser/search_engines/template_url_fetcher.h" |
58 #include "chrome/browser/search_engines/template_url_model.h" | 59 #include "chrome/browser/search_engines/template_url_model.h" |
59 #include "chrome/browser/sessions/session_types.h" | 60 #include "chrome/browser/sessions/session_types.h" |
60 #include "chrome/browser/tab_contents/infobar_delegate.h" | 61 #include "chrome/browser/tab_contents/infobar_delegate.h" |
61 #include "chrome/browser/tab_contents/interstitial_page.h" | 62 #include "chrome/browser/tab_contents/interstitial_page.h" |
62 #include "chrome/browser/tab_contents/navigation_entry.h" | 63 #include "chrome/browser/tab_contents/navigation_entry.h" |
63 #include "chrome/browser/tab_contents/provisional_load_details.h" | 64 #include "chrome/browser/tab_contents/provisional_load_details.h" |
64 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 65 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
65 #include "chrome/browser/tab_contents/tab_contents_view.h" | 66 #include "chrome/browser/tab_contents/tab_contents_view.h" |
66 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 67 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
67 #include "chrome/browser/thumbnail_store.h" | 68 #include "chrome/browser/thumbnail_store.h" |
68 #include "chrome/browser/translate/page_translated_details.h" | 69 #include "chrome/browser/translate/page_translated_details.h" |
69 #include "chrome/common/bindings_policy.h" | 70 #include "chrome/common/bindings_policy.h" |
70 #include "chrome/common/chrome_switches.h" | 71 #include "chrome/common/chrome_switches.h" |
71 #include "chrome/common/extensions/extension.h" | 72 #include "chrome/common/extensions/extension.h" |
72 #include "chrome/common/extensions/extension_action.h" | 73 #include "chrome/common/extensions/extension_action.h" |
73 #include "chrome/common/notification_service.h" | 74 #include "chrome/common/notification_service.h" |
74 #include "chrome/common/platform_util.h" | |
75 #include "chrome/common/pref_names.h" | 75 #include "chrome/common/pref_names.h" |
76 #include "chrome/common/render_messages.h" | 76 #include "chrome/common/render_messages.h" |
77 #include "chrome/common/renderer_preferences.h" | 77 #include "chrome/common/renderer_preferences.h" |
78 #include "chrome/common/url_constants.h" | 78 #include "chrome/common/url_constants.h" |
79 #include "grit/chromium_strings.h" | 79 #include "grit/chromium_strings.h" |
80 #include "grit/generated_resources.h" | 80 #include "grit/generated_resources.h" |
81 #include "grit/locale_settings.h" | 81 #include "grit/locale_settings.h" |
82 #include "grit/platform_locale_settings.h" | 82 #include "grit/platform_locale_settings.h" |
83 #include "grit/theme_resources.h" | 83 #include "grit/theme_resources.h" |
84 #include "net/base/mime_util.h" | 84 #include "net/base/mime_util.h" |
(...skipping 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3147 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3147 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
3148 } | 3148 } |
3149 | 3149 |
3150 Profile* TabContents::GetProfileForPasswordManager() { | 3150 Profile* TabContents::GetProfileForPasswordManager() { |
3151 return profile(); | 3151 return profile(); |
3152 } | 3152 } |
3153 | 3153 |
3154 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3154 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
3155 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3155 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
3156 } | 3156 } |
3157 | |
OLD | NEW |