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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 11378008: Raise an infobar and deny access to WebGL if a GPU reset was detected while a web page containing W… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups after restructuring based on review feedback from @jam. Created 8 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 (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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 virtual void willStartUsingPeerConnectionHandler(WebKit::WebFrame* frame, 648 virtual void willStartUsingPeerConnectionHandler(WebKit::WebFrame* frame,
649 WebKit::WebRTCPeerConnectionHandler* handler) OVERRIDE; 649 WebKit::WebRTCPeerConnectionHandler* handler) OVERRIDE;
650 virtual bool willCheckAndDispatchMessageEvent( 650 virtual bool willCheckAndDispatchMessageEvent(
651 WebKit::WebFrame* sourceFrame, 651 WebKit::WebFrame* sourceFrame,
652 WebKit::WebFrame* targetFrame, 652 WebKit::WebFrame* targetFrame,
653 WebKit::WebSecurityOrigin targetOrigin, 653 WebKit::WebSecurityOrigin targetOrigin,
654 WebKit::WebDOMMessageEvent event) OVERRIDE; 654 WebKit::WebDOMMessageEvent event) OVERRIDE;
655 virtual WebKit::WebString userAgentOverride( 655 virtual WebKit::WebString userAgentOverride(
656 WebKit::WebFrame* frame, 656 WebKit::WebFrame* frame,
657 const WebKit::WebURL& url) OVERRIDE; 657 const WebKit::WebURL& url) OVERRIDE;
658 // Indicates whether 3D APIs (Pepper 3D, WebGL) are blocked for the
jam 2012/11/15 16:57:25 nit: don't comment functions on overridden methods
Ken Russell (switch to Gerrit) 2012/11/15 20:53:25 Done.
659 // given frame because the GPU was reset recently. Has the
660 // side-effect of raising an infobar if the answer is true.
661 virtual bool allowWebGL(WebKit::WebFrame* frame, bool defaultValue) OVERRIDE;
jam 2012/11/15 16:57:25 nit: default_value per google style
Ken Russell (switch to Gerrit) 2012/11/15 20:53:25 Done.
662 virtual void didLoseWebGLContext(
663 WebKit::WebFrame* frame,
664 int arb_robustness_status_code) OVERRIDE;
658 665
659 // WebKit::WebPageSerializerClient implementation ---------------------------- 666 // WebKit::WebPageSerializerClient implementation ----------------------------
660 667
661 virtual void didSerializeDataForFrame( 668 virtual void didSerializeDataForFrame(
662 const WebKit::WebURL& frame_url, 669 const WebKit::WebURL& frame_url,
663 const WebKit::WebCString& data, 670 const WebKit::WebCString& data,
664 PageSerializationStatus status) OVERRIDE; 671 PageSerializationStatus status) OVERRIDE;
665 672
666 // RenderView implementation ------------------------------------------------- 673 // RenderView implementation -------------------------------------------------
667 674
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 // use the Observer interface to filter IPC messages and receive frame change 1555 // use the Observer interface to filter IPC messages and receive frame change
1549 // notifications. 1556 // notifications.
1550 // --------------------------------------------------------------------------- 1557 // ---------------------------------------------------------------------------
1551 1558
1552 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1559 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1553 }; 1560 };
1554 1561
1555 } // namespace content 1562 } // namespace content
1556 1563
1557 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1564 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698