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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 blink::WebLocalFrame* frame, | 95 blink::WebLocalFrame* frame, |
96 const blink::WebPluginParams& params, | 96 const blink::WebPluginParams& params, |
97 blink::WebPlugin** plugin); | 97 blink::WebPlugin** plugin); |
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 // Create delegates for browser plugin. |
106 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate( | 106 virtual BrowserPluginDelegate* CreateWebViewContainer( |
Fady Samuel
2014/11/03 11:03:37
This exposes the concept of WebView to the content
raymes
2014/11/03 22:51:31
Done.
| |
107 RenderFrame* render_frame); | |
108 virtual BrowserPluginDelegate* CreateMimeHandlerViewContainer( | |
107 RenderFrame* render_frame, | 109 RenderFrame* render_frame, |
108 const std::string& mime_type); | 110 const std::string& mime_type); |
109 | 111 |
110 // Returns true if the embedder has an error page to show for the given http | 112 // 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 | 113 // 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 | 114 // and the embedder's GetNavigationErrorHtml will be called afterwards to get |
113 // the error html. | 115 // the error html. |
114 virtual bool HasErrorPage(int http_status_code, | 116 virtual bool HasErrorPage(int http_status_code, |
115 std::string* error_domain); | 117 std::string* error_domain); |
116 | 118 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 277 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
276 | 278 |
277 // Returns a user agent override specific for |url|, or empty string if | 279 // Returns a user agent override specific for |url|, or empty string if |
278 // default user agent should be used. | 280 // default user agent should be used. |
279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); | 281 virtual std::string GetUserAgentOverrideForURL(const GURL& url); |
280 }; | 282 }; |
281 | 283 |
282 } // namespace content | 284 } // namespace content |
283 | 285 |
284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 286 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |