diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-12 22:07:36 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-12 22:07:36 +0000 |
commit | 5629e0c704b4807fd00062c8b91aeea3726fe18d (patch) | |
tree | 6bec38454b7f3709729ff1ea3090b5d828777da6 /content/shell/shell_content_renderer_client.h | |
parent | 434b02a20e5194548f6ab5868b78f14215e3614d (diff) | |
download | chromium_src-5629e0c704b4807fd00062c8b91aeea3726fe18d.zip chromium_src-5629e0c704b4807fd00062c8b91aeea3726fe18d.tar.gz chromium_src-5629e0c704b4807fd00062c8b91aeea3726fe18d.tar.bz2 |
Basic scaffolding for a "content shell", i.e. test browser over the content module. Once it's working, this will allow developers working on the core chrome code/web platform/networking etc to test their changes on a much smaller and hence faster to build/run/debug browser.
This doesn't do anything yet because it's blocked on having TabContentsView implementations in content.
BUG=90445
Review URL: http://codereview.chromium.org/7857019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_content_renderer_client.h')
-rw-r--r-- | content/shell/shell_content_renderer_client.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/content/shell/shell_content_renderer_client.h b/content/shell/shell_content_renderer_client.h new file mode 100644 index 0000000..a584521d --- /dev/null +++ b/content/shell/shell_content_renderer_client.h @@ -0,0 +1,67 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ +#define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ +#pragma once + +#include "base/compiler_specific.h" +#include "content/renderer/content_renderer_client.h" + +namespace content { + +class ShellContentRendererClient : public ContentRendererClient { + public: + virtual ~ShellContentRendererClient(); + virtual void RenderThreadStarted() OVERRIDE; + virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; + virtual void SetNumberOfViews(int number_of_views) OVERRIDE; + virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; + virtual std::string GetDefaultEncoding() OVERRIDE; + virtual WebKit::WebPlugin* CreatePlugin( + RenderView* render_view, + WebKit::WebFrame* frame, + const WebKit::WebPluginParams& params) OVERRIDE; + virtual void ShowErrorPage(RenderView* render_view, + WebKit::WebFrame* frame, + int http_status_code) OVERRIDE; + virtual std::string GetNavigationErrorHtml( + const WebKit::WebURLRequest& failed_request, + const WebKit::WebURLError& error) OVERRIDE; + virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; + virtual bool AllowPopup(const GURL& creator) OVERRIDE; + virtual bool ShouldFork(WebKit::WebFrame* frame, + const GURL& url, + bool is_content_initiated, + bool is_initial_navigation, + bool* send_referrer) OVERRIDE; + virtual bool WillSendRequest(WebKit::WebFrame* frame, + const GURL& url, + GURL* new_url) OVERRIDE; + virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; + virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; + virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; + virtual void DidCreateIsolatedScriptContext( + WebKit::WebFrame* frame, int world_id, + v8::Handle<v8::Context> context) OVERRIDE; + virtual unsigned long long VisitedLinkHash(const char* canonical_url, + size_t length) OVERRIDE; + virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; + virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; + virtual bool ShouldOverridePageVisibilityState( + const RenderView* render_view, + WebKit::WebPageVisibilityState* override_state) const OVERRIDE; + virtual bool HandleGetCookieRequest(RenderView* sender, + const GURL& url, + const GURL& first_party_for_cookies, + std::string* cookies) OVERRIDE; + virtual bool HandleSetCookieRequest(RenderView* sender, + const GURL& url, + const GURL& first_party_for_cookies, + const std::string& value) OVERRIDE; +}; + +} // namespace content + +#endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ |