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

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

Issue 7972018: Don't depend on the embedder creating a plugin. That way embedders can always provide an empty Co... (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
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/shell/shell_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/renderer/content_renderer_client.h" 10 #include "content/renderer/content_renderer_client.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class ShellContentRendererClient : public ContentRendererClient { 14 class ShellContentRendererClient : public ContentRendererClient {
15 public: 15 public:
16 virtual ~ShellContentRendererClient(); 16 virtual ~ShellContentRendererClient();
17 virtual void RenderThreadStarted() OVERRIDE; 17 virtual void RenderThreadStarted() OVERRIDE;
18 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; 18 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
19 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; 19 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
20 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; 20 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE;
21 virtual std::string GetDefaultEncoding() OVERRIDE; 21 virtual std::string GetDefaultEncoding() OVERRIDE;
22 virtual WebKit::WebPlugin* CreatePlugin( 22 virtual bool OverrideCreatePlugin(
23 RenderView* render_view, 23 RenderView* render_view,
24 WebKit::WebFrame* frame, 24 WebKit::WebFrame* frame,
25 const WebKit::WebPluginParams& params) OVERRIDE; 25 const WebKit::WebPluginParams& params,
26 WebKit::WebPlugin** plugin) OVERRIDE;
26 virtual void ShowErrorPage(RenderView* render_view, 27 virtual void ShowErrorPage(RenderView* render_view,
27 WebKit::WebFrame* frame, 28 WebKit::WebFrame* frame,
28 int http_status_code) OVERRIDE; 29 int http_status_code) OVERRIDE;
29 virtual std::string GetNavigationErrorHtml( 30 virtual std::string GetNavigationErrorHtml(
30 const WebKit::WebURLRequest& failed_request, 31 const WebKit::WebURLRequest& failed_request,
31 const WebKit::WebURLError& error) OVERRIDE; 32 const WebKit::WebURLError& error) OVERRIDE;
32 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; 33 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE;
33 virtual bool AllowPopup(const GURL& creator) OVERRIDE; 34 virtual bool AllowPopup(const GURL& creator) OVERRIDE;
34 virtual bool ShouldFork(WebKit::WebFrame* frame, 35 virtual bool ShouldFork(WebKit::WebFrame* frame,
35 const GURL& url, 36 const GURL& url,
(...skipping 23 matching lines...) Expand all
59 std::string* cookies) OVERRIDE; 60 std::string* cookies) OVERRIDE;
60 virtual bool HandleSetCookieRequest(RenderView* sender, 61 virtual bool HandleSetCookieRequest(RenderView* sender,
61 const GURL& url, 62 const GURL& url,
62 const GURL& first_party_for_cookies, 63 const GURL& first_party_for_cookies,
63 const std::string& value) OVERRIDE; 64 const std::string& value) OVERRIDE;
64 }; 65 };
65 66
66 } // namespace content 67 } // namespace content
67 68
68 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_ 69 #endif // CONTENT_SHELL_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view.cc ('k') | content/shell/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698