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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 109 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
110 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 110 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
111 virtual blink::WebPlugin* CreatePluginReplacement( | 111 virtual blink::WebPlugin* CreatePluginReplacement( |
112 RenderFrame* render_frame, | 112 RenderFrame* render_frame, |
113 const base::FilePath& plugin_path); | 113 const base::FilePath& plugin_path); |
114 | 114 |
115 // Creates a delegate for browser plugin. | 115 // Creates a delegate for browser plugin. |
116 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( | 116 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( |
117 RenderFrame* render_frame, | 117 RenderFrame* render_frame, |
118 const std::string& mime_type); | 118 const std::string& mime_type, |
| 119 const GURL& original_url); |
119 | 120 |
120 // Returns true if the embedder has an error page to show for the given http | 121 // Returns true if the embedder has an error page to show for the given http |
121 // status code. If so |error_domain| should be set to according to WebURLError | 122 // status code. If so |error_domain| should be set to according to WebURLError |
122 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 123 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
123 // the error html. | 124 // the error html. |
124 virtual bool HasErrorPage(int http_status_code, | 125 virtual bool HasErrorPage(int http_status_code, |
125 std::string* error_domain); | 126 std::string* error_domain); |
126 | 127 |
127 // Returns true if the embedder prefers not to show an error page for a failed | 128 // Returns true if the embedder prefers not to show an error page for a failed |
128 // navigation to |url| in |render_frame|. | 129 // navigation to |url| in |render_frame|. |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 286 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
286 | 287 |
287 // Returns a user agent override specific for |url|, or empty string if | 288 // Returns a user agent override specific for |url|, or empty string if |
288 // default user agent should be used. | 289 // default user agent should be used. |
289 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 290 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
290 }; | 291 }; |
291 | 292 |
292 } // namespace content | 293 } // namespace content |
293 | 294 |
294 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 295 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |