OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // plugin. See default_plugin_shared.h for possible values of |status|. | 268 // plugin. See default_plugin_shared.h for possible values of |status|. |
269 void OnMissingPluginStatus(WebPluginDelegateProxy* delegate, | 269 void OnMissingPluginStatus(WebPluginDelegateProxy* delegate, |
270 int status); | 270 int status); |
271 | 271 |
272 // Notification that the given pepper plugin we created is being deleted the | 272 // Notification that the given pepper plugin we created is being deleted the |
273 // pointer must not be dereferenced as this is called from the destructor of | 273 // pointer must not be dereferenced as this is called from the destructor of |
274 // the plugin. | 274 // the plugin. |
275 void OnPepperPluginDestroy(WebPluginDelegatePepper* pepper_plugin); | 275 void OnPepperPluginDestroy(WebPluginDelegatePepper* pepper_plugin); |
276 | 276 |
277 // Create a new plugin without checking the content settings. | 277 // Create a new plugin without checking the content settings. |
278 WebKit::WebPlugin* CreatePluginInternal( | 278 WebKit::WebPlugin* CreatePluginNoCheck(WebKit::WebFrame* frame, |
279 WebKit::WebFrame* frame, | 279 const WebKit::WebPluginParams& params); |
280 const WebKit::WebPluginParams& params, | |
281 WebPluginInfo* plugin_info, | |
282 const std::string& mime_type); | |
283 | 280 |
284 // Asks the browser for the CPBrowsingContext associated with this renderer. | 281 // Asks the browser for the CPBrowsingContext associated with this renderer. |
285 // This is an opaque identifier associated with the renderer for sending | 282 // This is an opaque identifier associated with the renderer for sending |
286 // messages for the given "Chrome Plugin." The Chrome Plugin API is used | 283 // messages for the given "Chrome Plugin." The Chrome Plugin API is used |
287 // only by gears and this function can be deleted when we remove gears. | 284 // only by gears and this function can be deleted when we remove gears. |
288 uint32 GetCPBrowsingContext(); | 285 uint32 GetCPBrowsingContext(); |
289 | 286 |
290 #if defined(OS_MACOSX) | 287 #if defined(OS_MACOSX) |
291 // Helper routines for GPU plugin support. Used by the | 288 // Helper routines for GPU plugin support. Used by the |
292 // WebPluginDelegateProxy, which has a pointer to the RenderView. | 289 // WebPluginDelegateProxy, which has a pointer to the RenderView. |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 // by preferred_size_change_timer_. | 846 // by preferred_size_change_timer_. |
850 void CheckPreferredSize(); | 847 void CheckPreferredSize(); |
851 | 848 |
852 // Resets the |content_blocked_| array. | 849 // Resets the |content_blocked_| array. |
853 void ClearBlockedContentSettings(); | 850 void ClearBlockedContentSettings(); |
854 | 851 |
855 // Creates DevToolsClient and sets up JavaScript bindings for developer tools | 852 // Creates DevToolsClient and sets up JavaScript bindings for developer tools |
856 // UI that is going to be hosted by this RenderView. | 853 // UI that is going to be hosted by this RenderView. |
857 void CreateDevToolsClient(); | 854 void CreateDevToolsClient(); |
858 | 855 |
| 856 // Create a new NPAPI plugin. |
| 857 WebKit::WebPlugin* CreateNPAPIPlugin(WebKit::WebFrame* frame, |
| 858 const WebKit::WebPluginParams& params, |
| 859 const FilePath& path, |
| 860 const std::string& mime_type); |
| 861 |
| 862 // Create a new Pepper plugin. |
| 863 WebKit::WebPlugin* CreatePepperPlugin(WebKit::WebFrame* frame, |
| 864 const WebKit::WebPluginParams& params, |
| 865 const FilePath& path, |
| 866 pepper::PluginModule* pepper_module); |
| 867 |
859 // Create a new placeholder for a blocked plugin. | 868 // Create a new placeholder for a blocked plugin. |
860 WebKit::WebPlugin* CreatePluginPlaceholder( | 869 WebKit::WebPlugin* CreatePluginPlaceholder( |
861 WebKit::WebFrame* frame, | 870 WebKit::WebFrame* frame, |
862 const WebKit::WebPluginParams& params); | 871 const WebKit::WebPluginParams& params); |
863 | 872 |
864 // Sends an IPC notification that the specified content type was blocked. | 873 // Sends an IPC notification that the specified content type was blocked. |
865 void DidBlockContentType(ContentSettingsType settings_type); | 874 void DidBlockContentType(ContentSettingsType settings_type); |
866 | 875 |
867 // This callback is triggered when DownloadImage completes, either | 876 // This callback is triggered when DownloadImage completes, either |
868 // succesfully or with a failure. See DownloadImage for more details. | 877 // succesfully or with a failure. See DownloadImage for more details. |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1283 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1275 // sections rather than throwing it randomly at the end. If you're adding a | 1284 // sections rather than throwing it randomly at the end. If you're adding a |
1276 // bunch of stuff, you should probably create a helper class and put your | 1285 // bunch of stuff, you should probably create a helper class and put your |
1277 // data and methods on that to avoid bloating RenderView more. | 1286 // data and methods on that to avoid bloating RenderView more. |
1278 // --------------------------------------------------------------------------- | 1287 // --------------------------------------------------------------------------- |
1279 | 1288 |
1280 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1289 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1281 }; | 1290 }; |
1282 | 1291 |
1283 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1292 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |