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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 11826005: Browser Plugin: Implement BrowserPluginObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 9 months 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
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 namespace webkit_media { 51 namespace webkit_media {
52 class WebMediaPlayerDelegate; 52 class WebMediaPlayerDelegate;
53 class WebMediaPlayerImpl; 53 class WebMediaPlayerImpl;
54 class WebMediaPlayerParams; 54 class WebMediaPlayerParams;
55 } 55 }
56 56
57 namespace content { 57 namespace content {
58 58
59 class BrowserPlugin;
59 class RenderView; 60 class RenderView;
60 61
61 // Embedder API for participating in renderer logic. 62 // Embedder API for participating in renderer logic.
62 class CONTENT_EXPORT ContentRendererClient { 63 class CONTENT_EXPORT ContentRendererClient {
63 public: 64 public:
64 virtual ~ContentRendererClient() {} 65 virtual ~ContentRendererClient() {}
65 66
66 // Notifies us that the RenderThread has been created. 67 // Notifies us that the RenderThread has been created.
67 virtual void RenderThreadStarted() {} 68 virtual void RenderThreadStarted() {}
68 69
69 // Notifies that a new RenderView has been created. 70 // Notifies that a new RenderView has been created.
70 virtual void RenderViewCreated(RenderView* render_view) {} 71 virtual void RenderViewCreated(RenderView* render_view) {}
71 72
72 // Sets a number of views/tabs opened in this process. 73 // Sets a number of views/tabs opened in this process.
73 virtual void SetNumberOfViews(int number_of_views) {} 74 virtual void SetNumberOfViews(int number_of_views) {}
74 75
75 // Returns the bitmap to show when a plugin crashed, or NULL for none. 76 // Returns the bitmap to show when a plugin crashed, or NULL for none.
76 virtual SkBitmap* GetSadPluginBitmap(); 77 virtual SkBitmap* GetSadPluginBitmap();
77 78
78 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for 79 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for
79 // none. 80 // none.
80 virtual SkBitmap* GetSadWebViewBitmap(); 81 virtual SkBitmap* GetSadWebViewBitmap();
81 82
83 // Notifies that a new BrowserPlugin has been created.
84 virtual void BrowserPluginCreated(BrowserPlugin* browser_plugin) {}
85
82 // Returns the default text encoding. 86 // Returns the default text encoding.
83 virtual std::string GetDefaultEncoding(); 87 virtual std::string GetDefaultEncoding();
84 88
85 // Allows the embedder to override creating a plugin. If it returns true, then 89 // Allows the embedder to override creating a plugin. If it returns true, then
86 // |plugin| will contain the created plugin, although it could be NULL. If it 90 // |plugin| will contain the created plugin, although it could be NULL. If it
87 // returns false, the content layer will create the plugin. 91 // returns false, the content layer will create the plugin.
88 virtual bool OverrideCreatePlugin( 92 virtual bool OverrideCreatePlugin(
89 RenderView* render_view, 93 RenderView* render_view,
90 WebKit::WebFrame* frame, 94 WebKit::WebFrame* frame,
91 const WebKit::WebPluginParams& params, 95 const WebKit::WebPluginParams& params,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 virtual void RegisterPPAPIInterfaceFactories( 223 virtual void RegisterPPAPIInterfaceFactories(
220 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} 224 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {}
221 225
222 // Returns whether BrowserPlugin should be allowed within the |container|. 226 // Returns whether BrowserPlugin should be allowed within the |container|.
223 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const; 227 virtual bool AllowBrowserPlugin(WebKit::WebPluginContainer* container) const;
224 }; 228 };
225 229
226 } // namespace content 230 } // namespace content
227 231
228 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 232 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698