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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 virtual void RenderThreadStarted() {} | 78 virtual void RenderThreadStarted() {} |
79 | 79 |
80 // Notifies that a new RenderFrame has been created. Note that at this point, | 80 // Notifies that a new RenderFrame has been created. Note that at this point, |
81 // render_frame->GetWebFrame()->parent() is always NULL. This will change once | 81 // render_frame->GetWebFrame()->parent() is always NULL. This will change once |
82 // the frame tree moves from Blink to content. | 82 // the frame tree moves from Blink to content. |
83 virtual void RenderFrameCreated(RenderFrame* render_frame) {} | 83 virtual void RenderFrameCreated(RenderFrame* render_frame) {} |
84 | 84 |
85 // Notifies that a new RenderView has been created. | 85 // Notifies that a new RenderView has been created. |
86 virtual void RenderViewCreated(RenderView* render_view) {} | 86 virtual void RenderViewCreated(RenderView* render_view) {} |
87 | 87 |
88 virtual void ServiceWorkerCreated() {} | |
Devlin
2015/07/30 21:31:08
Are these used?
annekao
2015/07/30 22:54:18
Removed.
| |
89 virtual void ServiceWorkerContextInitialized() {} | |
90 virtual void ServiceWorkerDestroyed() {} | |
91 | |
88 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 92 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
89 virtual SkBitmap* GetSadPluginBitmap(); | 93 virtual SkBitmap* GetSadPluginBitmap(); |
90 | 94 |
91 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 95 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
92 // none. | 96 // none. |
93 virtual SkBitmap* GetSadWebViewBitmap(); | 97 virtual SkBitmap* GetSadWebViewBitmap(); |
94 | 98 |
95 // Allows the embedder to create a plugin placeholder instead of a plugin. | 99 // Allows the embedder to create a plugin placeholder instead of a plugin. |
96 // Called before OverrideCreatePlugin. May return null to decline to provide | 100 // Called before OverrideCreatePlugin. May return null to decline to provide |
97 // a plugin placeholder. | 101 // a plugin placeholder. |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 | 294 |
291 // Allows an embedder to provide a blink::WebAppBannerClient. | 295 // Allows an embedder to provide a blink::WebAppBannerClient. |
292 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( | 296 virtual scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient( |
293 RenderFrame* render_frame); | 297 RenderFrame* render_frame); |
294 | 298 |
295 // Gives the embedder a chance to add properties to the context menu. | 299 // Gives the embedder a chance to add properties to the context menu. |
296 // Currently only called when the context menu is for an image. | 300 // Currently only called when the context menu is for an image. |
297 virtual void AddImageContextMenuProperties( | 301 virtual void AddImageContextMenuProperties( |
298 const blink::WebURLResponse& response, | 302 const blink::WebURLResponse& response, |
299 std::map<std::string, std::string>* properties) {} | 303 std::map<std::string, std::string>* properties) {} |
304 | |
305 virtual void DidInitializeWorkerContext(v8::Local<v8::Context> context, | |
Devlin
2015/07/30 21:31:08
Comment this method.
Also, I'd rename this to DidI
annekao
2015/07/30 22:54:18
Done.
Devlin
2015/07/30 22:58:51
The method still has no comment...
annekao
2015/07/30 23:57:39
Oops, somehow missed the first line. Done.
| |
306 const GURL& url){}; | |
300 }; | 307 }; |
301 | 308 |
302 } // namespace content | 309 } // namespace content |
303 | 310 |
304 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 311 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |