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

Side by Side Diff: content/renderer/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
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_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Sets a number of views/tabs opened in this process. 47 // Sets a number of views/tabs opened in this process.
48 virtual void SetNumberOfViews(int number_of_views) = 0; 48 virtual void SetNumberOfViews(int number_of_views) = 0;
49 49
50 // Returns the bitmap to show when a plugin crashed, or NULL for none. 50 // Returns the bitmap to show when a plugin crashed, or NULL for none.
51 virtual SkBitmap* GetSadPluginBitmap() = 0; 51 virtual SkBitmap* GetSadPluginBitmap() = 0;
52 52
53 // Returns the default text encoding. 53 // Returns the default text encoding.
54 virtual std::string GetDefaultEncoding() = 0; 54 virtual std::string GetDefaultEncoding() = 0;
55 55
56 // Create a plugin in the given frame. Can return NULL, in which case 56 // Allows the embedder to override creating a plugin. If it returns true, then
57 // RenderView will create a plugin itself. 57 // |plugin| will contain the created plugin, although it could be NULL. If it
58 virtual WebKit::WebPlugin* CreatePlugin( 58 // returns false, the content layer will create the plugin.
59 virtual bool OverrideCreatePlugin(
59 RenderView* render_view, 60 RenderView* render_view,
60 WebKit::WebFrame* frame, 61 WebKit::WebFrame* frame,
61 const WebKit::WebPluginParams& params) = 0; 62 const WebKit::WebPluginParams& params,
63 WebKit::WebPlugin** plugin) = 0;
62 64
63 // Give the embedder the ability to set an error page. 65 // Give the embedder the ability to set an error page.
64 virtual void ShowErrorPage(RenderView* render_view, 66 virtual void ShowErrorPage(RenderView* render_view,
65 WebKit::WebFrame* frame, 67 WebKit::WebFrame* frame,
66 int http_status_code) = 0; 68 int http_status_code) = 0;
67 69
68 // Returns the html to display when a navigation error occurs. 70 // Returns the html to display when a navigation error occurs.
69 virtual std::string GetNavigationErrorHtml( 71 virtual std::string GetNavigationErrorHtml(
70 const WebKit::WebURLRequest& failed_request, 72 const WebKit::WebURLRequest& failed_request,
71 const WebKit::WebURLError& error) = 0; 73 const WebKit::WebURLError& error) = 0;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Cookies to be set are passed in the value parameter. 124 // Cookies to be set are passed in the value parameter.
123 virtual bool HandleSetCookieRequest(RenderView* sender, 125 virtual bool HandleSetCookieRequest(RenderView* sender,
124 const GURL& url, 126 const GURL& url,
125 const GURL& first_party_for_cookies, 127 const GURL& first_party_for_cookies,
126 const std::string& value) = 0; 128 const std::string& value) = 0;
127 }; 129 };
128 130
129 } // namespace content 131 } // namespace content
130 132
131 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ 133 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/renderer/mock_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698