| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 using content::ResourceDispatcherHostImpl; | 148 using content::ResourceDispatcherHostImpl; |
| 149 using content::SSLStatus; | 149 using content::SSLStatus; |
| 150 using content::SessionStorageNamespace; | 150 using content::SessionStorageNamespace; |
| 151 using content::SiteInstance; | 151 using content::SiteInstance; |
| 152 using content::UserMetricsAction; | 152 using content::UserMetricsAction; |
| 153 using content::WebContents; | 153 using content::WebContents; |
| 154 using content::WebContentsObserver; | 154 using content::WebContentsObserver; |
| 155 using content::WebUI; | 155 using content::WebUI; |
| 156 using content::WebUIController; | 156 using content::WebUIController; |
| 157 using content::WebUIControllerFactory; | 157 using content::WebUIControllerFactory; |
| 158 using webkit_glue::WebPreferences; |
| 158 | 159 |
| 159 namespace { | 160 namespace { |
| 160 | 161 |
| 161 // Amount of time we wait between when a key event is received and the renderer | 162 // Amount of time we wait between when a key event is received and the renderer |
| 162 // is queried for its state and pushed to the NavigationEntry. | 163 // is queried for its state and pushed to the NavigationEntry. |
| 163 const int kQueryStateDelay = 5000; | 164 const int kQueryStateDelay = 5000; |
| 164 | 165 |
| 165 const int kSyncWaitDelay = 40; | 166 const int kSyncWaitDelay = 40; |
| 166 | 167 |
| 167 const char kDotGoogleDotCom[] = ".google.com"; | 168 const char kDotGoogleDotCom[] = ".google.com"; |
| (...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2729 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2730 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 2730 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2731 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
| 2731 // Can be NULL during tests. | 2732 // Can be NULL during tests. |
| 2732 if (rwh_view) | 2733 if (rwh_view) |
| 2733 rwh_view->SetSize(GetView()->GetContainerSize()); | 2734 rwh_view->SetSize(GetView()->GetContainerSize()); |
| 2734 } | 2735 } |
| 2735 | 2736 |
| 2736 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { | 2737 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { |
| 2737 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2738 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
| 2738 } | 2739 } |
| OLD | NEW |