| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 #endif | 337 #endif |
| 338 | 338 |
| 339 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); | 339 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); |
| 340 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); | 340 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); |
| 341 | 341 |
| 342 // Helper function to retrieve information about a plugin for a URL and mime | 342 // Helper function to retrieve information about a plugin for a URL and mime |
| 343 // type. Returns false if no plugin was found. | 343 // type. Returns false if no plugin was found. |
| 344 // |actual_mime_type| is the actual mime type supported by the | 344 // |actual_mime_type| is the actual mime type supported by the |
| 345 // plugin found that match the URL given (one for each item in | 345 // plugin found that match the URL given (one for each item in |
| 346 // |info|). | 346 // |info|). |
| 347 bool GetPluginInfo(const GURL& url, | 347 CONTENT_EXPORT bool GetPluginInfo(const GURL& url, |
| 348 const GURL& page_url, | 348 const GURL& page_url, |
| 349 const std::string& mime_type, | 349 const std::string& mime_type, |
| 350 webkit::WebPluginInfo* plugin_info, | 350 webkit::WebPluginInfo* plugin_info, |
| 351 std::string* actual_mime_type); | 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 |