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

Side by Side Diff: public/web/WebPermissionClient.h

Issue 51323003: Expose WEBGL_debug_renderer_info through a chromium finch experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix member init order 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual bool allowWebComponents(const WebDocument&, bool defaultValue) { ret urn defaultValue; } 94 virtual bool allowWebComponents(const WebDocument&, bool defaultValue) { ret urn defaultValue; }
95 95
96 // Controls whether to enable MutationEvents for this document. 96 // Controls whether to enable MutationEvents for this document.
97 // The common use case of this method is actually to selectively disable Mut ationEvents, 97 // The common use case of this method is actually to selectively disable Mut ationEvents,
98 // but it's been named for consistency with the rest of the interface. 98 // but it's been named for consistency with the rest of the interface.
99 virtual bool allowMutationEvents(const WebDocument&, bool defaultValue) { re turn defaultValue; } 99 virtual bool allowMutationEvents(const WebDocument&, bool defaultValue) { re turn defaultValue; }
100 100
101 // Controls whether pushState and related History APIs are enabled for this frame. 101 // Controls whether pushState and related History APIs are enabled for this frame.
102 virtual bool allowPushState(const WebDocument&) { return true; } 102 virtual bool allowPushState(const WebDocument&) { return true; }
103 103
104 // Controls whether WebGL extension WEBGL_debug_renderer_info is allowed for this frame.
105 virtual bool allowWebGLDebugRendererInfo(WebFrame*) { return false; }
106
104 // Notifies the client that the frame would have instantiated a plug-in if p lug-ins were enabled. 107 // Notifies the client that the frame would have instantiated a plug-in if p lug-ins were enabled.
105 virtual void didNotAllowPlugins(WebFrame*) { } 108 virtual void didNotAllowPlugins(WebFrame*) { }
106 109
107 // Notifies the client that the frame would have executed script if script w ere enabled. 110 // Notifies the client that the frame would have executed script if script w ere enabled.
108 virtual void didNotAllowScript(WebFrame*) { } 111 virtual void didNotAllowScript(WebFrame*) { }
109 112
110 protected: 113 protected:
111 ~WebPermissionClient() { } 114 ~WebPermissionClient() { }
112 }; 115 };
113 116
114 } // namespace WebKit 117 } // namespace WebKit
115 118
116 #endif 119 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698