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/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "chrome/browser/ui/browser_dialogs.h" | 59 #include "chrome/browser/ui/browser_dialogs.h" |
60 #include "chrome/common/bindings_policy.h" | 60 #include "chrome/common/bindings_policy.h" |
61 #include "chrome/common/chrome_constants.h" | 61 #include "chrome/common/chrome_constants.h" |
62 #include "chrome/common/chrome_switches.h" | 62 #include "chrome/common/chrome_switches.h" |
63 #include "chrome/common/content_restriction.h" | 63 #include "chrome/common/content_restriction.h" |
64 #include "chrome/common/extensions/extension.h" | 64 #include "chrome/common/extensions/extension.h" |
65 #include "chrome/common/extensions/extension_action.h" | 65 #include "chrome/common/extensions/extension_action.h" |
66 #include "chrome/common/extensions/extension_icon_set.h" | 66 #include "chrome/common/extensions/extension_icon_set.h" |
67 #include "chrome/common/extensions/extension_resource.h" | 67 #include "chrome/common/extensions/extension_resource.h" |
68 #include "chrome/common/extensions/url_pattern.h" | 68 #include "chrome/common/extensions/url_pattern.h" |
69 #include "chrome/common/navigation_types.h" | |
70 #include "chrome/common/net/url_request_context_getter.h" | 69 #include "chrome/common/net/url_request_context_getter.h" |
71 #include "chrome/common/pref_names.h" | 70 #include "chrome/common/pref_names.h" |
72 #include "chrome/common/render_messages.h" | 71 #include "chrome/common/render_messages.h" |
73 #include "chrome/common/render_messages_params.h" | 72 #include "chrome/common/render_messages_params.h" |
74 #include "chrome/common/url_constants.h" | 73 #include "chrome/common/url_constants.h" |
75 #include "content/browser/child_process_security_policy.h" | 74 #include "content/browser/child_process_security_policy.h" |
76 #include "content/browser/host_zoom_map.h" | 75 #include "content/browser/host_zoom_map.h" |
77 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 76 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
78 #include "content/browser/renderer_host/render_process_host.h" | 77 #include "content/browser/renderer_host/render_process_host.h" |
79 #include "content/browser/renderer_host/render_view_host.h" | 78 #include "content/browser/renderer_host/render_view_host.h" |
80 #include "content/browser/renderer_host/render_widget_host_view.h" | 79 #include "content/browser/renderer_host/render_widget_host_view.h" |
81 #include "content/browser/renderer_host/resource_request_details.h" | 80 #include "content/browser/renderer_host/resource_request_details.h" |
82 #include "content/browser/site_instance.h" | 81 #include "content/browser/site_instance.h" |
83 #include "content/browser/tab_contents/interstitial_page.h" | 82 #include "content/browser/tab_contents/interstitial_page.h" |
84 #include "content/browser/tab_contents/navigation_entry.h" | 83 #include "content/browser/tab_contents/navigation_entry.h" |
85 #include "content/browser/tab_contents/provisional_load_details.h" | 84 #include "content/browser/tab_contents/provisional_load_details.h" |
86 #include "content/browser/tab_contents/tab_contents_delegate.h" | 85 #include "content/browser/tab_contents/tab_contents_delegate.h" |
87 #include "content/browser/tab_contents/tab_contents_observer.h" | 86 #include "content/browser/tab_contents/tab_contents_observer.h" |
88 #include "content/browser/tab_contents/tab_contents_view.h" | 87 #include "content/browser/tab_contents/tab_contents_view.h" |
89 #include "content/browser/webui/web_ui.h" | 88 #include "content/browser/webui/web_ui.h" |
| 89 #include "content/common/navigation_types.h" |
90 #include "content/common/notification_service.h" | 90 #include "content/common/notification_service.h" |
91 #include "net/base/net_util.h" | 91 #include "net/base/net_util.h" |
92 #include "net/base/registry_controlled_domain.h" | 92 #include "net/base/registry_controlled_domain.h" |
93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
94 #include "ui/base/resource/resource_bundle.h" | 94 #include "ui/base/resource/resource_bundle.h" |
95 #include "ui/gfx/codec/png_codec.h" | 95 #include "ui/gfx/codec/png_codec.h" |
96 #include "webkit/glue/password_form.h" | 96 #include "webkit/glue/password_form.h" |
97 #include "webkit/glue/webpreferences.h" | 97 #include "webkit/glue/webpreferences.h" |
98 | 98 |
99 #if defined(OS_MACOSX) | 99 #if defined(OS_MACOSX) |
(...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 | 2818 |
2819 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2819 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2820 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 2820 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
2821 rwh_view->SetSize(view()->GetContainerSize()); | 2821 rwh_view->SetSize(view()->GetContainerSize()); |
2822 } | 2822 } |
2823 | 2823 |
2824 void TabContents::OnOnlineStateChanged(bool online) { | 2824 void TabContents::OnOnlineStateChanged(bool online) { |
2825 render_view_host()->Send(new ViewMsg_NetworkStateChanged( | 2825 render_view_host()->Send(new ViewMsg_NetworkStateChanged( |
2826 render_view_host()->routing_id(), online)); | 2826 render_view_host()->routing_id(), online)); |
2827 } | 2827 } |
OLD | NEW |