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

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: Clean up bindings API 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 namespace webkit_media { 48 namespace webkit_media {
49 class WebMediaPlayerDelegate; 49 class WebMediaPlayerDelegate;
50 class WebMediaPlayerImpl; 50 class WebMediaPlayerImpl;
51 class WebMediaPlayerParams; 51 class WebMediaPlayerParams;
52 } 52 }
53 53
54 namespace content { 54 namespace content {
55 55
56 class BrowserPlugin;
56 class RenderView; 57 class RenderView;
57 58
58 // Embedder API for participating in renderer logic. 59 // Embedder API for participating in renderer logic.
59 class CONTENT_EXPORT ContentRendererClient { 60 class CONTENT_EXPORT ContentRendererClient {
60 public: 61 public:
61 virtual ~ContentRendererClient() {} 62 virtual ~ContentRendererClient() {}
62 63
63 // Notifies us that the RenderThread has been created. 64 // Notifies us that the RenderThread has been created.
64 virtual void RenderThreadStarted() {} 65 virtual void RenderThreadStarted() {}
65 66
66 // Notifies that a new RenderView has been created. 67 // Notifies that a new RenderView has been created.
67 virtual void RenderViewCreated(RenderView* render_view) {} 68 virtual void RenderViewCreated(RenderView* render_view) {}
68 69
69 // Sets a number of views/tabs opened in this process. 70 // Sets a number of views/tabs opened in this process.
70 virtual void SetNumberOfViews(int number_of_views) {} 71 virtual void SetNumberOfViews(int number_of_views) {}
71 72
72 // Returns the bitmap to show when a plugin crashed, or NULL for none. 73 // Returns the bitmap to show when a plugin crashed, or NULL for none.
73 virtual SkBitmap* GetSadPluginBitmap(); 74 virtual SkBitmap* GetSadPluginBitmap();
74 75
75 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for 76 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for
76 // none. 77 // none.
77 virtual SkBitmap* GetSadWebViewBitmap(); 78 virtual SkBitmap* GetSadWebViewBitmap();
78 79
80 // Notifies that a new BrowserPlugin has been created.
81 virtual void BrowserPluginCreated(BrowserPlugin* browser_plugin) {}
82
79 // Returns the default text encoding. 83 // Returns the default text encoding.
80 virtual std::string GetDefaultEncoding(); 84 virtual std::string GetDefaultEncoding();
81 85
82 // Allows the embedder to override creating a plugin. If it returns true, then 86 // Allows the embedder to override creating a plugin. If it returns true, then
83 // |plugin| will contain the created plugin, although it could be NULL. If it 87 // |plugin| will contain the created plugin, although it could be NULL. If it
84 // returns false, the content layer will create the plugin. 88 // returns false, the content layer will create the plugin.
85 virtual bool OverrideCreatePlugin( 89 virtual bool OverrideCreatePlugin(
86 RenderView* render_view, 90 RenderView* render_view,
87 WebKit::WebFrame* frame, 91 WebKit::WebFrame* frame,
88 const WebKit::WebPluginParams& params, 92 const WebKit::WebPluginParams& params,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 const GURL& first_party_for_cookies, 209 const GURL& first_party_for_cookies,
206 const std::string& value); 210 const std::string& value);
207 211
208 virtual void RegisterPPAPIInterfaceFactories( 212 virtual void RegisterPPAPIInterfaceFactories(
209 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} 213 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {}
210 }; 214 };
211 215
212 } // namespace content 216 } // namespace content
213 217
214 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 218 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698