| 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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 } | 925 } |
| 926 | 926 |
| 927 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, | 927 void RenderFrameImpl::didLoseWebGLContext(WebKit::WebFrame* frame, |
| 928 int arb_robustness_status_code) { | 928 int arb_robustness_status_code) { |
| 929 render_view_->Send(new ViewHostMsg_DidLose3DContext( | 929 render_view_->Send(new ViewHostMsg_DidLose3DContext( |
| 930 GURL(frame->top()->document().securityOrigin().toString()), | 930 GURL(frame->top()->document().securityOrigin().toString()), |
| 931 THREE_D_API_TYPE_WEBGL, | 931 THREE_D_API_TYPE_WEBGL, |
| 932 arb_robustness_status_code)); | 932 arb_robustness_status_code)); |
| 933 } | 933 } |
| 934 | 934 |
| 935 bool RenderFrameImpl::allowWebGLDebugRendererInfo(WebKit::WebFrame* frame) { |
| 936 bool allowed = false; |
| 937 render_view_->Send(new ViewHostMsg_IsWebGLDebugRendererInfoAllowed( |
| 938 GURL(frame->top()->document().securityOrigin().toString()), |
| 939 &allowed)); |
| 940 return allowed; |
| 941 } |
| 942 |
| 935 } // namespace content | 943 } // namespace content |
| OLD | NEW |