Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: Address comment from kenrb@ Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class WebSpeechSynthesizer; 43 class WebSpeechSynthesizer;
44 class WebSpeechSynthesizerClient; 44 class WebSpeechSynthesizerClient;
45 class WebThemeEngine; 45 class WebThemeEngine;
46 class WebURLRequest; 46 class WebURLRequest;
47 class WebWorkerPermissionClientProxy; 47 class WebWorkerPermissionClientProxy;
48 struct WebPluginParams; 48 struct WebPluginParams;
49 struct WebURLError; 49 struct WebURLError;
50 } 50 }
51 51
52 namespace content { 52 namespace content {
53 class BrowserPluginDelegate;
53 class DocumentState; 54 class DocumentState;
54 class RenderFrame; 55 class RenderFrame;
55 class RenderView; 56 class RenderView;
56 class SynchronousCompositor; 57 class SynchronousCompositor;
57 struct KeySystemInfo; 58 struct KeySystemInfo;
58 struct WebPluginInfo; 59 struct WebPluginInfo;
59 60
60 // Embedder API for participating in renderer logic. 61 // Embedder API for participating in renderer logic.
61 class CONTENT_EXPORT ContentRendererClient { 62 class CONTENT_EXPORT ContentRendererClient {
62 public: 63 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 blink::WebLocalFrame* frame, 95 blink::WebLocalFrame* frame,
95 const blink::WebPluginParams& params, 96 const blink::WebPluginParams& params,
96 blink::WebPlugin** plugin); 97 blink::WebPlugin** plugin);
97 98
98 // 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|
99 // 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.
100 virtual blink::WebPlugin* CreatePluginReplacement( 101 virtual blink::WebPlugin* CreatePluginReplacement(
101 RenderFrame* render_frame, 102 RenderFrame* render_frame,
102 const base::FilePath& plugin_path); 103 const base::FilePath& plugin_path);
103 104
105 // Creates a delegate for browser plugin.
106 virtual BrowserPluginDelegate* CreateBrowserPluginDelegate(
107 RenderFrame* render_frame,
108 const std::string& mime_type);
109
104 // Returns true if the embedder has an error page to show for the given http 110 // 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 111 // status code. If so |error_domain| should be set to according to WebURLError
106 // and the embedder's GetNavigationErrorHtml will be called afterwards to get 112 // and the embedder's GetNavigationErrorHtml will be called afterwards to get
107 // the error html. 113 // the error html.
108 virtual bool HasErrorPage(int http_status_code, 114 virtual bool HasErrorPage(int http_status_code,
109 std::string* error_domain); 115 std::string* error_domain);
110 116
111 // Returns true if the embedder prefers not to show an error page for a failed 117 // Returns true if the embedder prefers not to show an error page for a failed
112 // navigation to |url| in |render_frame|. 118 // navigation to |url| in |render_frame|.
113 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame, 119 virtual bool ShouldSuppressErrorPage(RenderFrame* render_frame,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. 271 // Returns true if the page at |url| can use Pepper VideoDecoder APIs.
266 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); 272 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url);
267 273
268 // Returns true if dev channel APIs are available for plugins. 274 // Returns true if dev channel APIs are available for plugins.
269 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 275 virtual bool IsPluginAllowedToUseDevChannelAPIs();
270 }; 276 };
271 277
272 } // namespace content 278 } // namespace content
273 279
274 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 280 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.h ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698