| 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" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/renderer_host/web_cache_manager.h" | 37 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 38 #include "chrome/browser/renderer_preferences_util.h" | 38 #include "chrome/browser/renderer_preferences_util.h" |
| 39 #include "chrome/browser/safe_browsing/client_side_detection_host.h" | 39 #include "chrome/browser/safe_browsing/client_side_detection_host.h" |
| 40 #include "chrome/browser/sessions/session_types.h" | 40 #include "chrome/browser/sessions/session_types.h" |
| 41 #include "chrome/browser/tab_contents/infobar_delegate.h" | 41 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 42 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" | 42 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" |
| 43 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" | 43 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" |
| 44 #include "chrome/browser/ui/browser_dialogs.h" | 44 #include "chrome/browser/ui/browser_dialogs.h" |
| 45 #include "chrome/common/chrome_constants.h" | 45 #include "chrome/common/chrome_constants.h" |
| 46 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
| 47 #include "chrome/common/icon_messages.h" | |
| 48 #include "chrome/common/pref_names.h" | 47 #include "chrome/common/pref_names.h" |
| 49 #include "chrome/common/render_messages.h" | 48 #include "chrome/common/render_messages.h" |
| 50 #include "chrome/common/url_constants.h" | 49 #include "chrome/common/url_constants.h" |
| 51 #include "content/browser/child_process_security_policy.h" | 50 #include "content/browser/child_process_security_policy.h" |
| 52 #include "content/browser/content_browser_client.h" | 51 #include "content/browser/content_browser_client.h" |
| 53 #include "content/browser/host_zoom_map.h" | 52 #include "content/browser/host_zoom_map.h" |
| 54 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 53 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
| 55 #include "content/browser/renderer_host/render_process_host.h" | 54 #include "content/browser/renderer_host/render_process_host.h" |
| 56 #include "content/browser/renderer_host/render_view_host.h" | 55 #include "content/browser/renderer_host/render_view_host.h" |
| 57 #include "content/browser/renderer_host/render_widget_host_view.h" | 56 #include "content/browser/renderer_host/render_widget_host_view.h" |
| (...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 | 2346 |
| 2348 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2347 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 2349 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 2348 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
| 2350 rwh_view->SetSize(view()->GetContainerSize()); | 2349 rwh_view->SetSize(view()->GetContainerSize()); |
| 2351 } | 2350 } |
| 2352 | 2351 |
| 2353 void TabContents::OnOnlineStateChanged(bool online) { | 2352 void TabContents::OnOnlineStateChanged(bool online) { |
| 2354 render_view_host()->Send(new ViewMsg_NetworkStateChanged( | 2353 render_view_host()->Send(new ViewMsg_NetworkStateChanged( |
| 2355 render_view_host()->routing_id(), online)); | 2354 render_view_host()->routing_id(), online)); |
| 2356 } | 2355 } |
| OLD | NEW |