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

Side by Side Diff: content/shell/shell_content_renderer_client.h

Issue 7857019: Basic scaffolding for a "content shell", i.e. test browser over the content module. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "content/renderer/content_renderer_client.h"
11
12 namespace content {
13
14 class ShellContentRendererClient : public ContentRendererClient {
15 public:
16 virtual ~ShellContentRendererClient();
17 virtual void RenderThreadStarted() OVERRIDE;
18 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
19 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
20 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE;
21 virtual std::string GetDefaultEncoding() OVERRIDE;
22 virtual WebKit::WebPlugin* CreatePlugin(
23 RenderView* render_view,
24 WebKit::WebFrame* frame,
25 const WebKit::WebPluginParams& params) OVERRIDE;
26 virtual void ShowErrorPage(RenderView* render_view,
27 WebKit::WebFrame* frame,
28 int http_status_code) OVERRIDE;
29 virtual std::string GetNavigationErrorHtml(
30 const WebKit::WebURLRequest& failed_request,
31 const WebKit::WebURLError& error) OVERRIDE;
32 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE;
33 virtual bool AllowPopup(const GURL& creator) OVERRIDE;
34 virtual bool ShouldFork(WebKit::WebFrame* frame,
35 const GURL& url,
36 bool is_content_initiated,
37 bool is_initial_navigation,
38 bool* send_referrer) OVERRIDE;
39 virtual bool WillSendRequest(WebKit::WebFrame* frame,
40 const GURL& url,
41 GURL* new_url) OVERRIDE;
42 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE;
43 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE;
44 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE;
45 virtual void DidCreateIsolatedScriptContext(
46 WebKit::WebFrame* frame, int world_id,
47 v8::Handle<v8::Context> context) OVERRIDE;
48 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
49 size_t length) OVERRIDE;
50 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
51 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
52 virtual bool ShouldOverridePageVisibilityState(
53 const RenderView* render_view,
54 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
55 virtual bool HandleGetCookieRequest(RenderView* sender,
56 const GURL& url,
57 const GURL& first_party_for_cookies,
58 std::string* cookies) OVERRIDE;
59 virtual bool HandleSetCookieRequest(RenderView* sender,
60 const GURL& url,
61 const GURL& first_party_for_cookies,
62 const std::string& value) OVERRIDE;
63 };
64
65 } // namespace content
66
67 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/shell_content_plugin_client.cc ('k') | content/shell/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698