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

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: Created 7 years, 11 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 27 matching lines...) Expand all
38 } 38 }
39 39
40 namespace webkit_media { 40 namespace webkit_media {
41 class WebMediaPlayerDelegate; 41 class WebMediaPlayerDelegate;
42 class WebMediaPlayerImpl; 42 class WebMediaPlayerImpl;
43 class WebMediaPlayerParams; 43 class WebMediaPlayerParams;
44 } 44 }
45 45
46 namespace content { 46 namespace content {
47 47
48 class BrowserPlugin;
48 class RenderView; 49 class RenderView;
49 50
50 // Embedder API for participating in renderer logic. 51 // Embedder API for participating in renderer logic.
51 class CONTENT_EXPORT ContentRendererClient { 52 class CONTENT_EXPORT ContentRendererClient {
52 public: 53 public:
53 virtual ~ContentRendererClient() {} 54 virtual ~ContentRendererClient() {}
54 55
55 // Notifies us that the RenderThread has been created. 56 // Notifies us that the RenderThread has been created.
56 virtual void RenderThreadStarted() {} 57 virtual void RenderThreadStarted() {}
57 58
58 // Notifies that a new RenderView has been created. 59 // Notifies that a new RenderView has been created.
59 virtual void RenderViewCreated(RenderView* render_view) {} 60 virtual void RenderViewCreated(RenderView* render_view) {}
60 61
61 // Sets a number of views/tabs opened in this process. 62 // Sets a number of views/tabs opened in this process.
62 virtual void SetNumberOfViews(int number_of_views) {} 63 virtual void SetNumberOfViews(int number_of_views) {}
63 64
64 // Returns the bitmap to show when a plugin crashed, or NULL for none. 65 // Returns the bitmap to show when a plugin crashed, or NULL for none.
65 virtual SkBitmap* GetSadPluginBitmap(); 66 virtual SkBitmap* GetSadPluginBitmap();
66 67
67 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for 68 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for
68 // none. 69 // none.
69 virtual SkBitmap* GetSadWebViewBitmap(); 70 virtual SkBitmap* GetSadWebViewBitmap();
70 71
72 // Notifies that a new BrowserPlugin has been created.
73 virtual void BrowserPluginCreated(BrowserPlugin* browser_plugin) {}
74
71 // Returns the default text encoding. 75 // Returns the default text encoding.
72 virtual std::string GetDefaultEncoding(); 76 virtual std::string GetDefaultEncoding();
73 77
74 // Allows the embedder to override creating a plugin. If it returns true, then 78 // Allows the embedder to override creating a plugin. If it returns true, then
75 // |plugin| will contain the created plugin, although it could be NULL. If it 79 // |plugin| will contain the created plugin, although it could be NULL. If it
76 // returns false, the content layer will create the plugin. 80 // returns false, the content layer will create the plugin.
77 virtual bool OverrideCreatePlugin( 81 virtual bool OverrideCreatePlugin(
78 RenderView* render_view, 82 RenderView* render_view,
79 WebKit::WebFrame* frame, 83 WebKit::WebFrame* frame,
80 const WebKit::WebPluginParams& params, 84 const WebKit::WebPluginParams& params,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const GURL& first_party_for_cookies, 185 const GURL& first_party_for_cookies,
182 const std::string& value); 186 const std::string& value);
183 187
184 virtual void RegisterPPAPIInterfaceFactories( 188 virtual void RegisterPPAPIInterfaceFactories(
185 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} 189 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {}
186 }; 190 };
187 191
188 } // namespace content 192 } // namespace content
189 193
190 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 194 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698