| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 3191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3202 navigation_state->set_request_committed(true); | 3202 navigation_state->set_request_committed(true); |
| 3203 | 3203 |
| 3204 UpdateURL(frame); | 3204 UpdateURL(frame); |
| 3205 | 3205 |
| 3206 // If this committed load was initiated by a client redirect, we're | 3206 // If this committed load was initiated by a client redirect, we're |
| 3207 // at the last stop now, so clear it. | 3207 // at the last stop now, so clear it. |
| 3208 completed_client_redirect_src_ = Referrer(); | 3208 completed_client_redirect_src_ = Referrer(); |
| 3209 | 3209 |
| 3210 // Check whether we have new encoding name. | 3210 // Check whether we have new encoding name. |
| 3211 UpdateEncoding(frame, frame->view()->pageEncoding().utf8()); | 3211 UpdateEncoding(frame, frame->view()->pageEncoding().utf8()); |
| 3212 |
| 3213 if (!frame->parent()) { // Only for top frames. |
| 3214 RenderThreadImpl::current()->histogram_customizer()-> |
| 3215 RenderViewNavigatedToHost(GURL(GetLoadingUrl(frame)).host(), |
| 3216 g_view_map.Get().size()); |
| 3217 } |
| 3212 } | 3218 } |
| 3213 | 3219 |
| 3214 void RenderViewImpl::didClearWindowObject(WebFrame* frame) { | 3220 void RenderViewImpl::didClearWindowObject(WebFrame* frame) { |
| 3215 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 3221 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
| 3216 DidClearWindowObject(frame)); | 3222 DidClearWindowObject(frame)); |
| 3217 | 3223 |
| 3218 GURL frame_url = frame->document().url(); | 3224 GURL frame_url = frame->document().url(); |
| 3219 if ((enabled_bindings_ & content::BINDINGS_POLICY_WEB_UI) && | 3225 if ((enabled_bindings_ & content::BINDINGS_POLICY_WEB_UI) && |
| 3220 (frame_url.SchemeIs(chrome::kChromeUIScheme) || | 3226 (frame_url.SchemeIs(chrome::kChromeUIScheme) || |
| 3221 frame_url.SchemeIs(chrome::kDataScheme))) { | 3227 frame_url.SchemeIs(chrome::kDataScheme))) { |
| (...skipping 2662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5884 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5890 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5885 return !!RenderThreadImpl::current()->compositor_thread(); | 5891 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5886 } | 5892 } |
| 5887 | 5893 |
| 5888 void RenderViewImpl::OnJavaBridgeInit() { | 5894 void RenderViewImpl::OnJavaBridgeInit() { |
| 5889 DCHECK(!java_bridge_dispatcher_); | 5895 DCHECK(!java_bridge_dispatcher_); |
| 5890 #if defined(ENABLE_JAVA_BRIDGE) | 5896 #if defined(ENABLE_JAVA_BRIDGE) |
| 5891 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5897 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5892 #endif | 5898 #endif |
| 5893 } | 5899 } |
| OLD | NEW |