Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 48113021: Expose WebGL extension WEBGL_debug_renderer_info to Google domains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698