OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/child/appcache/appcache_dispatcher.h" | 10 #include "content/child/appcache/appcache_dispatcher.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 if (!render_view_->renderer_preferences_.report_frame_name_changes) | 267 if (!render_view_->renderer_preferences_.report_frame_name_changes) |
268 return; | 268 return; |
269 | 269 |
270 render_view_->Send( | 270 render_view_->Send( |
271 new ViewHostMsg_UpdateFrameName(render_view_->GetRoutingID(), | 271 new ViewHostMsg_UpdateFrameName(render_view_->GetRoutingID(), |
272 frame->identifier(), | 272 frame->identifier(), |
273 !frame->parent(), | 273 !frame->parent(), |
274 UTF16ToUTF8(name))); | 274 UTF16ToUTF8(name))); |
275 } | 275 } |
276 | 276 |
| 277 void RenderFrameImpl::didMatchCSS( |
| 278 WebKit::WebFrame* frame, |
| 279 const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors, |
| 280 const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors) { |
| 281 render_view_->didMatchCSS( |
| 282 frame, newly_matching_selectors, stopped_matching_selectors); |
| 283 } |
| 284 |
277 void RenderFrameImpl::loadURLExternally(WebKit::WebFrame* frame, | 285 void RenderFrameImpl::loadURLExternally(WebKit::WebFrame* frame, |
278 const WebKit::WebURLRequest& request, | 286 const WebKit::WebURLRequest& request, |
279 WebKit::WebNavigationPolicy policy) { | 287 WebKit::WebNavigationPolicy policy) { |
280 loadURLExternally(frame, request, policy, WebString()); | 288 loadURLExternally(frame, request, policy, WebString()); |
281 } | 289 } |
282 | 290 |
283 void RenderFrameImpl::loadURLExternally( | 291 void RenderFrameImpl::loadURLExternally( |
284 WebKit::WebFrame* frame, | 292 WebKit::WebFrame* frame, |
285 const WebKit::WebURLRequest& request, | 293 const WebKit::WebURLRequest& request, |
286 WebKit::WebNavigationPolicy policy, | 294 WebKit::WebNavigationPolicy policy, |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 | 877 |
870 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, | 878 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, |
871 int arb_robustness_status_code) { | 879 int arb_robustness_status_code) { |
872 render_view_->Send(new ViewHostMsg_DidLose3DContext( | 880 render_view_->Send(new ViewHostMsg_DidLose3DContext( |
873 GURL(frame->top()->document().securityOrigin().toString()), | 881 GURL(frame->top()->document().securityOrigin().toString()), |
874 THREE_D_API_TYPE_WEBGL, | 882 THREE_D_API_TYPE_WEBGL, |
875 arb_robustness_status_code)); | 883 arb_robustness_status_code)); |
876 } | 884 } |
877 | 885 |
878 } // namespace content | 886 } // namespace content |
OLD | NEW |