| 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 2456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2467 void RenderViewImpl::willClose(WebFrame* frame) { | 2467 void RenderViewImpl::willClose(WebFrame* frame) { |
| 2468 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); | 2468 FOR_EACH_OBSERVER(RenderViewObserver, observers_, FrameWillClose(frame)); |
| 2469 } | 2469 } |
| 2470 | 2470 |
| 2471 void RenderViewImpl::loadURLExternally( | 2471 void RenderViewImpl::loadURLExternally( |
| 2472 WebFrame* frame, const WebURLRequest& request, | 2472 WebFrame* frame, const WebURLRequest& request, |
| 2473 WebNavigationPolicy policy) { | 2473 WebNavigationPolicy policy) { |
| 2474 loadURLExternally(frame, request, policy, WebString()); | 2474 loadURLExternally(frame, request, policy, WebString()); |
| 2475 } | 2475 } |
| 2476 | 2476 |
| 2477 void RenderViewImpl::Repaint(const gfx::Size& size) { |
| 2478 OnMsgRepaint(size); |
| 2479 } |
| 2480 |
| 2477 void RenderViewImpl::loadURLExternally( | 2481 void RenderViewImpl::loadURLExternally( |
| 2478 WebFrame* frame, const WebURLRequest& request, | 2482 WebFrame* frame, const WebURLRequest& request, |
| 2479 WebNavigationPolicy policy, | 2483 WebNavigationPolicy policy, |
| 2480 const WebString& suggested_name) { | 2484 const WebString& suggested_name) { |
| 2481 Referrer referrer( | 2485 Referrer referrer( |
| 2482 GURL(request.httpHeaderField(WebString::fromUTF8("Referer"))), | 2486 GURL(request.httpHeaderField(WebString::fromUTF8("Referer"))), |
| 2483 GetReferrerPolicyFromRequest(frame, request)); | 2487 GetReferrerPolicyFromRequest(frame, request)); |
| 2484 if (policy == WebKit::WebNavigationPolicyDownload) { | 2488 if (policy == WebKit::WebNavigationPolicyDownload) { |
| 2485 Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer, | 2489 Send(new ViewHostMsg_DownloadUrl(routing_id_, request.url(), referrer, |
| 2486 suggested_name)); | 2490 suggested_name)); |
| (...skipping 3315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5802 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5806 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5803 return !!RenderThreadImpl::current()->compositor_thread(); | 5807 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5804 } | 5808 } |
| 5805 | 5809 |
| 5806 void RenderViewImpl::OnJavaBridgeInit() { | 5810 void RenderViewImpl::OnJavaBridgeInit() { |
| 5807 DCHECK(!java_bridge_dispatcher_); | 5811 DCHECK(!java_bridge_dispatcher_); |
| 5808 #if defined(ENABLE_JAVA_BRIDGE) | 5812 #if defined(ENABLE_JAVA_BRIDGE) |
| 5809 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5813 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5810 #endif | 5814 #endif |
| 5811 } | 5815 } |
| OLD | NEW |