| 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 #include "content/browser/tab_contents/tab_contents.h" | 5 #include "content/browser/tab_contents/tab_contents.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/metrics/stats_counters.h" | 11 #include "base/metrics/stats_counters.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/browser_shutdown.h" | 16 #include "chrome/browser/browser_shutdown.h" |
| 17 #include "chrome/browser/debugger/devtools_manager.h" | 17 #include "chrome/browser/debugger/devtools_manager.h" |
| 18 #include "chrome/browser/defaults.h" | 18 #include "chrome/browser/defaults.h" |
| 19 #include "chrome/browser/external_protocol_handler.h" | 19 #include "chrome/browser/external_protocol_handler.h" |
| 20 #include "chrome/browser/load_from_memory_cache_details.h" | 20 #include "chrome/browser/load_from_memory_cache_details.h" |
| 21 #include "chrome/browser/load_notification_details.h" | |
| 22 #include "chrome/browser/notifications/desktop_notification_service.h" | 21 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 23 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 22 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 24 #include "chrome/browser/prefs/pref_service.h" | 23 #include "chrome/browser/prefs/pref_service.h" |
| 25 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/browser/renderer_host/web_cache_manager.h" | 25 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 27 #include "chrome/browser/renderer_preferences_util.h" | 26 #include "chrome/browser/renderer_preferences_util.h" |
| 28 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" | 27 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" |
| 29 #include "chrome/browser/ui/browser_dialogs.h" | 28 #include "chrome/browser/ui/browser_dialogs.h" |
| 30 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 31 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 32 #include "chrome/common/render_messages.h" | 31 #include "chrome/common/render_messages.h" |
| 33 #include "content/browser/child_process_security_policy.h" | 32 #include "content/browser/child_process_security_policy.h" |
| 34 #include "content/browser/content_browser_client.h" | 33 #include "content/browser/content_browser_client.h" |
| 35 #include "content/browser/host_zoom_map.h" | 34 #include "content/browser/host_zoom_map.h" |
| 36 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 35 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
| 36 #include "content/browser/load_notification_details.h" |
| 37 #include "content/browser/renderer_host/render_process_host.h" | 37 #include "content/browser/renderer_host/render_process_host.h" |
| 38 #include "content/browser/renderer_host/render_view_host.h" | 38 #include "content/browser/renderer_host/render_view_host.h" |
| 39 #include "content/browser/renderer_host/render_widget_host_view.h" | 39 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 40 #include "content/browser/renderer_host/resource_request_details.h" | 40 #include "content/browser/renderer_host/resource_request_details.h" |
| 41 #include "content/browser/site_instance.h" | 41 #include "content/browser/site_instance.h" |
| 42 #include "content/browser/tab_contents/interstitial_page.h" | 42 #include "content/browser/tab_contents/interstitial_page.h" |
| 43 #include "content/browser/tab_contents/navigation_entry.h" | 43 #include "content/browser/tab_contents/navigation_entry.h" |
| 44 #include "content/browser/tab_contents/provisional_load_details.h" | 44 #include "content/browser/tab_contents/provisional_load_details.h" |
| 45 #include "content/browser/tab_contents/tab_contents_delegate.h" | 45 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 46 #include "content/browser/tab_contents/tab_contents_observer.h" | 46 #include "content/browser/tab_contents/tab_contents_observer.h" |
| (...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1976 | 1976 |
| 1977 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 1977 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 1978 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 1978 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
| 1979 rwh_view->SetSize(view()->GetContainerSize()); | 1979 rwh_view->SetSize(view()->GetContainerSize()); |
| 1980 } | 1980 } |
| 1981 | 1981 |
| 1982 void TabContents::OnOnlineStateChanged(bool online) { | 1982 void TabContents::OnOnlineStateChanged(bool online) { |
| 1983 render_view_host()->Send(new ViewMsg_NetworkStateChanged( | 1983 render_view_host()->Send(new ViewMsg_NetworkStateChanged( |
| 1984 render_view_host()->routing_id(), online)); | 1984 render_view_host()->routing_id(), online)); |
| 1985 } | 1985 } |
| OLD | NEW |