OLD | NEW |
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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 virtual bool HandleSetCookieRequest(RenderView* sender, | 232 virtual bool HandleSetCookieRequest(RenderView* sender, |
233 const GURL& url, | 233 const GURL& url, |
234 const GURL& first_party_for_cookies, | 234 const GURL& first_party_for_cookies, |
235 const std::string& value); | 235 const std::string& value); |
236 | 236 |
237 virtual void RegisterPPAPIInterfaceFactories( | 237 virtual void RegisterPPAPIInterfaceFactories( |
238 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 238 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
239 | 239 |
240 // Returns whether BrowserPlugin should be allowed within the |container|. | 240 // Returns whether BrowserPlugin should be allowed within the |container|. |
241 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; | 241 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; |
242 | |
243 // Allow the embedder to specify a different renderer compositor MessageLoop. | |
244 // If not NULL, the returned MessageLoop must be valid for the lifetime of | |
245 // RenderThreadImpl. If NULL, then a new thread will be created. | |
246 virtual base::MessageLoop* OverrideCompositorMessageLoop() const; | |
247 | |
248 // Called when a render view's compositor instance is created, when the | |
249 // kEnableSynchronousRendererCompositor flag is used. | |
250 // NOTE this is called on the Compositor thread: the embedder must | |
251 // implement OverrideCompositorMessageLoop() when using this interface. | |
252 virtual void DidCreateSynchronousCompositor( | |
253 int render_view_id, | |
254 SynchronousCompositor* compositor) {} | |
255 | |
256 // Allow the embedder to disable input event filtering by the compositor. | |
257 virtual bool ShouldCreateCompositorInputHandler() const; | |
258 }; | 242 }; |
259 | 243 |
260 } // namespace content | 244 } // namespace content |
261 | 245 |
262 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 246 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |