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