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

Unified Diff: content/renderer/content_renderer_client.h

Issue 6765011: Move the dispatching of extension messages out of RenderThread. This also moves a bunch of exten... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/render_view_test.cc ('k') | content/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/content_renderer_client.h
===================================================================
--- content/renderer/content_renderer_client.h (revision 79565)
+++ content/renderer/content_renderer_client.h (working copy)
@@ -11,6 +11,7 @@
#include "base/string16.h"
#include "content/common/content_client.h"
+class GURL;
class RenderView;
class SkBitmap;
@@ -28,20 +29,31 @@
class ContentRendererClient {
public:
virtual SkBitmap* GetSadPluginBitmap();
+
virtual std::string GetDefaultEncoding();
+
// Create a plugin in the given frame. Can return NULL, in which case
// RenderView will create a plugin itself.
virtual WebKit::WebPlugin* CreatePlugin(
RenderView* render_view,
WebKit::WebFrame* frame,
const WebKit::WebPluginParams& params);
+
// Returns the html to display when a navigation error occurs.
virtual std::string GetNavigationErrorHtml(
const WebKit::WebURLRequest& failed_request,
const WebKit::WebURLError& error);
+
// Returns the ISO 639_1 language code of the specified |text|, or 'unknown'
// if it failed.
virtual std::string DetermineTextLanguage(const string16& text);
+
+ // Returns true if the renderer process should schedule the idle handler when
+ // all widgets are hidden.
+ virtual bool RunIdleHandlerWhenWidgetsHidden();
+
+ // Returns true if the given url can create popup windows.
+ virtual bool AllowPopup(const GURL& creator);
};
} // namespace content
« no previous file with comments | « chrome/test/render_view_test.cc ('k') | content/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698