summaryrefslogtreecommitdiffstats
path: root/content/renderer/content_renderer_client.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-01 19:56:03 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-01 19:56:03 +0000
commite48869a1cbcc07f09bd9d8c6f9e17bf506d86fa6 (patch)
treedc56d70f1f52cc3cb67696a1145217ba0db0f305 /content/renderer/content_renderer_client.h
parent9910416172ac0fafb0e8544fcc0f246d896b9fe7 (diff)
downloadchromium_src-e48869a1cbcc07f09bd9d8c6f9e17bf506d86fa6.zip
chromium_src-e48869a1cbcc07f09bd9d8c6f9e17bf506d86fa6.tar.gz
chromium_src-e48869a1cbcc07f09bd9d8c6f9e17bf506d86fa6.tar.bz2
Remove the rest of the extension dependencies from content\renderer.
Review URL: http://codereview.chromium.org/6706004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/content_renderer_client.h')
-rw-r--r--content/renderer/content_renderer_client.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/content/renderer/content_renderer_client.h b/content/renderer/content_renderer_client.h
index 268518e..e9bcbf9 100644
--- a/content/renderer/content_renderer_client.h
+++ b/content/renderer/content_renderer_client.h
@@ -28,8 +28,13 @@ namespace content {
// Embedder API for participating in renderer logic.
class ContentRendererClient {
public:
+ // Notifies that a new RenderView has been created.
+ virtual void RenderViewCreated(RenderView* render_view);
+
+ // Returns the bitmap to show when a plugin crashed, or NULL for none.
virtual SkBitmap* GetSadPluginBitmap();
+ // Returns the default text encoding.
virtual std::string GetDefaultEncoding();
// Create a plugin in the given frame. Can return NULL, in which case
@@ -54,6 +59,23 @@ class ContentRendererClient {
// Returns true if the given url can create popup windows.
virtual bool AllowPopup(const GURL& creator);
+
+ // Returns true if we should fork a new process for the given navigation.
+ virtual bool ShouldFork(WebKit::WebFrame* frame,
+ const GURL& url,
+ bool is_content_initiated,
+ bool* send_referrer);
+
+ // Notifies the embedder that the given frame is requesting the resource at
+ // |url|. If the function returns true, the url is changed to |new_url|.
+ virtual bool WillSendRequest(WebKit::WebFrame* frame,
+ const GURL& url,
+ GURL* new_url);
+
+ // See the corresponding functions in WebKit::WebFrameClient.
+ virtual void DidCreateScriptContext(WebKit::WebFrame* frame);
+ virtual void DidDestroyScriptContext(WebKit::WebFrame* frame);
+ virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame);
};
} // namespace content