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/download/download_request_limiter.h" | |
17 #include "chrome/browser/download/download_util.h" | 16 #include "chrome/browser/download/download_util.h" |
18 #include "content/browser/browser_context.h" | 17 #include "content/browser/browser_context.h" |
19 #include "content/browser/child_process_security_policy.h" | 18 #include "content/browser/child_process_security_policy.h" |
20 #include "content/browser/content_browser_client.h" | 19 #include "content/browser/content_browser_client.h" |
21 #include "content/browser/debugger/devtools_manager.h" | 20 #include "content/browser/debugger/devtools_manager.h" |
22 #include "content/browser/download/download_manager.h" | 21 #include "content/browser/download/download_manager.h" |
23 #include "content/browser/host_zoom_map.h" | 22 #include "content/browser/host_zoom_map.h" |
24 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 23 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
25 #include "content/browser/load_from_memory_cache_details.h" | 24 #include "content/browser/load_from_memory_cache_details.h" |
26 #include "content/browser/load_notification_details.h" | 25 #include "content/browser/load_notification_details.h" |
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 } | 1936 } |
1938 | 1937 |
1939 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | 1938 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { |
1940 render_manager_.SwapInRenderViewHost(rvh); | 1939 render_manager_.SwapInRenderViewHost(rvh); |
1941 } | 1940 } |
1942 | 1941 |
1943 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 1942 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
1944 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 1943 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
1945 rwh_view->SetSize(view()->GetContainerSize()); | 1944 rwh_view->SetSize(view()->GetContainerSize()); |
1946 } | 1945 } |
OLD | NEW |