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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Returns the default text encoding. | 86 // Returns the default text encoding. |
87 virtual std::string GetDefaultEncoding(); | 87 virtual std::string GetDefaultEncoding(); |
88 | 88 |
89 // Allows the embedder to override creating a plugin. If it returns true, then | 89 // Allows the embedder to override creating a plugin. If it returns true, then |
90 // |plugin| will contain the created plugin, although it could be NULL. If it | 90 // |plugin| will contain the created plugin, although it could be NULL. If it |
91 // returns false, the content layer will create the plugin. | 91 // returns false, the content layer will create the plugin. |
92 virtual bool OverrideCreatePlugin( | 92 virtual bool OverrideCreatePlugin( |
93 RenderFrame* render_frame, | 93 RenderFrame* render_frame, |
94 blink::WebLocalFrame* frame, | 94 blink::WebLocalFrame* frame, |
95 const blink::WebPluginParams& params, | 95 const blink::WebPluginParams& params, |
| 96 // TODO(lazyboy): This is problematic. |
| 97 int* instance_id, |
96 blink::WebPlugin** plugin); | 98 blink::WebPlugin** plugin); |
97 | 99 |
98 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 100 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
99 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 101 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
100 virtual blink::WebPlugin* CreatePluginReplacement( | 102 virtual blink::WebPlugin* CreatePluginReplacement( |
101 RenderFrame* render_frame, | 103 RenderFrame* render_frame, |
102 const base::FilePath& plugin_path); | 104 const base::FilePath& plugin_path); |
103 | 105 |
104 // Returns true if the embedder has an error page to show for the given http | 106 // Returns true if the embedder has an error page to show for the given http |
105 // status code. If so |error_domain| should be set to according to WebURLError | 107 // status code. If so |error_domain| should be set to according to WebURLError |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 258 |
257 // Creates a permission client proxy for in-renderer worker. | 259 // Creates a permission client proxy for in-renderer worker. |
258 virtual blink::WebWorkerPermissionClientProxy* | 260 virtual blink::WebWorkerPermissionClientProxy* |
259 CreateWorkerPermissionClientProxy(RenderFrame* render_frame, | 261 CreateWorkerPermissionClientProxy(RenderFrame* render_frame, |
260 blink::WebFrame* frame); | 262 blink::WebFrame* frame); |
261 }; | 263 }; |
262 | 264 |
263 } // namespace content | 265 } // namespace content |
264 | 266 |
265 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 267 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |