OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Sets a number of views/tabs opened in this process. | 77 // Sets a number of views/tabs opened in this process. |
78 virtual void SetNumberOfViews(int number_of_views) {} | 78 virtual void SetNumberOfViews(int number_of_views) {} |
79 | 79 |
80 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 80 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
81 virtual SkBitmap* GetSadPluginBitmap(); | 81 virtual SkBitmap* GetSadPluginBitmap(); |
82 | 82 |
83 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for | 83 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for |
84 // none. | 84 // none. |
85 virtual SkBitmap* GetSadWebViewBitmap(); | 85 virtual SkBitmap* GetSadWebViewBitmap(); |
86 | 86 |
87 // Returns the default text encoding. | |
88 virtual std::string GetDefaultEncoding(); | |
89 | |
90 // Allows the embedder to override creating a plugin. If it returns true, then | 87 // Allows the embedder to override creating a plugin. If it returns true, then |
91 // |plugin| will contain the created plugin, although it could be NULL. If it | 88 // |plugin| will contain the created plugin, although it could be NULL. If it |
92 // returns false, the content layer will create the plugin. | 89 // returns false, the content layer will create the plugin. |
93 virtual bool OverrideCreatePlugin( | 90 virtual bool OverrideCreatePlugin( |
94 RenderFrame* render_frame, | 91 RenderFrame* render_frame, |
95 blink::WebLocalFrame* frame, | 92 blink::WebLocalFrame* frame, |
96 const blink::WebPluginParams& params, | 93 const blink::WebPluginParams& params, |
97 blink::WebPlugin** plugin); | 94 blink::WebPlugin** plugin); |
98 | 95 |
99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 96 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 272 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
276 | 273 |
277 // Returns a user agent override specific for |url|, or empty string if | 274 // Returns a user agent override specific for |url|, or empty string if |
278 // default user agent should be used. | 275 // default user agent should be used. |
279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 276 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
280 }; | 277 }; |
281 | 278 |
282 } // namespace content | 279 } // namespace content |
283 | 280 |
284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 281 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |