OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 class PrintWebViewHelper; | 70 class PrintWebViewHelper; |
71 class RenderViewObserver; | 71 class RenderViewObserver; |
72 class RenderViewVisitor; | 72 class RenderViewVisitor; |
73 class RenderWidgetFullscreenPepper; | 73 class RenderWidgetFullscreenPepper; |
74 class SkBitmap; | 74 class SkBitmap; |
75 class SpeechInputDispatcher; | 75 class SpeechInputDispatcher; |
76 class WebPluginDelegateProxy; | 76 class WebPluginDelegateProxy; |
77 class WebUIBindings; | 77 class WebUIBindings; |
78 struct ContextMenuMediaParams; | 78 struct ContextMenuMediaParams; |
79 struct PP_Flash_NetAddress; | 79 struct PP_Flash_NetAddress; |
80 struct ViewHostMsg_GetMatchingPlugins_Params; | |
jam
2011/09/27 16:51:34
nit: not needed
Bernhard Bauer
2011/09/29 13:20:47
Done.
| |
80 struct ViewHostMsg_RunFileChooser_Params; | 81 struct ViewHostMsg_RunFileChooser_Params; |
81 struct ViewMsg_SwapOut_Params; | 82 struct ViewMsg_SwapOut_Params; |
82 struct ViewMsg_Navigate_Params; | 83 struct ViewMsg_Navigate_Params; |
83 struct ViewMsg_StopFinding_Params; | 84 struct ViewMsg_StopFinding_Params; |
84 struct WebDropData; | 85 struct WebDropData; |
85 | 86 |
86 namespace base { | 87 namespace base { |
87 class WaitableEvent; | 88 class WaitableEvent; |
88 } // namespace base | 89 } // namespace base |
89 | 90 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
332 int32 width, | 333 int32 width, |
333 int32 height, | 334 int32 height, |
334 TransportDIB::Handle transport_dib); | 335 TransportDIB::Handle transport_dib); |
335 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, | 336 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, |
336 uint64 surface_id); | 337 uint64 surface_id); |
337 #endif | 338 #endif |
338 | 339 |
339 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); | 340 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); |
340 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); | 341 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); |
341 | 342 |
342 // Helper function to retrieve information about a plugin for a URL and mime | 343 // Helper function to retrieve information about matching plug-ins for a URL |
343 // type. Returns false if no plugin was found. | 344 // and MIME type. |
344 // |actual_mime_type| is the actual mime type supported by the | 345 CONTENT_EXPORT void GetMatchingPlugins( |
345 // plugin found that match the URL given (one for each item in | 346 const GURL& url, |
346 // |info|). | 347 const GURL& page_url, |
347 CONTENT_EXPORT bool GetPluginInfo(const GURL& url, | 348 const std::string& mime_type, |
348 const GURL& page_url, | 349 std::vector<webkit::WebPluginInfo>* plugins, |
349 const std::string& mime_type, | 350 std::vector<std::string>* mime_types, |
350 webkit::WebPluginInfo* plugin_info, | 351 std::vector<bool>* allowed); |
351 std::string* actual_mime_type); | |
352 | 352 |
353 // Asks the host to create a block of shared memory for the renderer. | 353 // Asks the host to create a block of shared memory for the renderer. |
354 // The shared memory handle allocated by the host is returned back. | 354 // The shared memory handle allocated by the host is returned back. |
355 base::SharedMemoryHandle HostAllocateSharedMemoryBuffer(uint32 buffer_size); | 355 base::SharedMemoryHandle HostAllocateSharedMemoryBuffer(uint32 buffer_size); |
356 | 356 |
357 // IPC::Channel::Listener implementation ------------------------------------- | 357 // IPC::Channel::Listener implementation ------------------------------------- |
358 | 358 |
359 virtual bool OnMessageReceived(const IPC::Message& msg); | 359 virtual bool OnMessageReceived(const IPC::Message& msg); |
360 | 360 |
361 // WebKit::WebWidgetClient implementation ------------------------------------ | 361 // WebKit::WebWidgetClient implementation ------------------------------------ |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1260 // bunch of stuff, you should probably create a helper class and put your | 1260 // bunch of stuff, you should probably create a helper class and put your |
1261 // data and methods on that to avoid bloating RenderView more. You can use | 1261 // data and methods on that to avoid bloating RenderView more. You can use |
1262 // the Observer interface to filter IPC messages and receive frame change | 1262 // the Observer interface to filter IPC messages and receive frame change |
1263 // notifications. | 1263 // notifications. |
1264 // --------------------------------------------------------------------------- | 1264 // --------------------------------------------------------------------------- |
1265 | 1265 |
1266 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1266 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1267 }; | 1267 }; |
1268 | 1268 |
1269 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1269 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |