| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 struct WebPluginInfo; | 69 struct WebPluginInfo; |
| 70 | 70 |
| 71 // Embedder API for participating in renderer logic. | 71 // Embedder API for participating in renderer logic. |
| 72 class CONTENT_EXPORT ContentRendererClient { | 72 class CONTENT_EXPORT ContentRendererClient { |
| 73 public: | 73 public: |
| 74 virtual ~ContentRendererClient() {} | 74 virtual ~ContentRendererClient() {} |
| 75 | 75 |
| 76 // Notifies us that the RenderThread has been created. | 76 // Notifies us that the RenderThread has been created. |
| 77 virtual void RenderThreadStarted() {} | 77 virtual void RenderThreadStarted() {} |
| 78 | 78 |
| 79 // Notifies that a new RenderFrame has been created. Note that at this point, | 79 // Notifies that a new RenderFrame has been created. |
| 80 // render_frame->GetWebFrame()->parent() is always NULL. This will change once | |
| 81 // the frame tree moves from Blink to content. | |
| 82 virtual void RenderFrameCreated(RenderFrame* render_frame) {} | 80 virtual void RenderFrameCreated(RenderFrame* render_frame) {} |
| 83 | 81 |
| 84 // Notifies that a new RenderView has been created. | 82 // Notifies that a new RenderView has been created. |
| 85 virtual void RenderViewCreated(RenderView* render_view) {} | 83 virtual void RenderViewCreated(RenderView* render_view) {} |
| 86 | 84 |
| 87 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 85 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
| 88 virtual SkBitmap* GetSadPluginBitmap(); | 86 virtual SkBitmap* GetSadPluginBitmap(); |
| 89 | 87 |
| 90 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 88 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
| 91 // none. | 89 // none. |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Notifies that a service worker context will be destroyed. This function | 302 // Notifies that a service worker context will be destroyed. This function |
| 305 // is called from the worker thread. | 303 // is called from the worker thread. |
| 306 virtual void WillDestroyServiceWorkerContextOnWorkerThread( | 304 virtual void WillDestroyServiceWorkerContextOnWorkerThread( |
| 307 v8::Local<v8::Context> context, | 305 v8::Local<v8::Context> context, |
| 308 const GURL& url) {} | 306 const GURL& url) {} |
| 309 }; | 307 }; |
| 310 | 308 |
| 311 } // namespace content | 309 } // namespace content |
| 312 | 310 |
| 313 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 311 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |