| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | 99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| |
| 100 // couldn't be loaded. This allows the embedder to show a custom placeholder. | 100 // couldn't be loaded. This allows the embedder to show a custom placeholder. |
| 101 virtual blink::WebPlugin* CreatePluginReplacement( | 101 virtual blink::WebPlugin* CreatePluginReplacement( |
| 102 RenderFrame* render_frame, | 102 RenderFrame* render_frame, |
| 103 const base::FilePath& plugin_path); | 103 const base::FilePath& plugin_path); |
| 104 | 104 |
| 105 // Creates a delegate for browser plugin. | 105 // Creates a delegate for browser plugin. |
| 106 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( | 106 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( |
| 107 RenderFrame* render_frame, | 107 RenderFrame* render_frame, |
| 108 const std::string& mime_type); | 108 const std::string& mime_type, |
| 109 const GURL& original_url); |
| 109 | 110 |
| 110 // Returns true if the embedder has an error page to show for the given http | 111 // Returns true if the embedder has an error page to show for the given http |
| 111 // status code. If so |error_domain| should be set to according to WebURLError | 112 // status code. If so |error_domain| should be set to according to WebURLError |
| 112 // and the embedder's GetNavigationErrorHtml will be called afterwards to get | 113 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
| 113 // the error html. | 114 // the error html. |
| 114 virtual bool HasErrorPage(int http_status_code, | 115 virtual bool HasErrorPage(int http_status_code, |
| 115 std::string* error_domain); | 116 std::string* error_domain); |
| 116 | 117 |
| 117 // Returns true if the embedder prefers not to show an error page for a failed | 118 // Returns true if the embedder prefers not to show an error page for a failed |
| 118 // navigation to |url| in |render_frame|. | 119 // navigation to |url| in |render_frame|. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 276 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 276 | 277 |
| 277 // Returns a user agent override specific for |url|, or empty string if | 278 // Returns a user agent override specific for |url|, or empty string if |
| 278 // default user agent should be used. | 279 // default user agent should be used. |
| 279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 280 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
| 280 }; | 281 }; |
| 281 | 282 |
| 282 } // namespace content | 283 } // namespace content |
| 283 | 284 |
| 284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 285 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |