| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| 11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 CPBrowsingContext GetCPBrowsingContext(); | 78 CPBrowsingContext GetCPBrowsingContext(); |
| 79 | 79 |
| 80 // Retrieves the WebPluginProxy for the given context that was returned by | 80 // Retrieves the WebPluginProxy for the given context that was returned by |
| 81 // GetCPBrowsingContext, or NULL if not found. | 81 // GetCPBrowsingContext, or NULL if not found. |
| 82 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); | 82 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); |
| 83 | 83 |
| 84 // Returns a WebPluginResourceClient object given its id, or NULL if no | 84 // Returns a WebPluginResourceClient object given its id, or NULL if no |
| 85 // object with that id exists. | 85 // object with that id exists. |
| 86 WebPluginResourceClient* GetResourceClient(int id); | 86 WebPluginResourceClient* GetResourceClient(int id); |
| 87 | 87 |
| 88 // Returns the process id of the renderer that contains this plugin. |
| 89 int GetRendererProcessId(); |
| 90 |
| 88 // For windowless plugins, paints the given rectangle into the local buffer. | 91 // For windowless plugins, paints the given rectangle into the local buffer. |
| 89 void Paint(const gfx::Rect& rect); | 92 void Paint(const gfx::Rect& rect); |
| 90 | 93 |
| 91 // Callback from the renderer to let us know that a paint occurred. | 94 // Callback from the renderer to let us know that a paint occurred. |
| 92 void DidPaint(); | 95 void DidPaint(); |
| 93 | 96 |
| 94 // Notification received on a plugin issued resource request | 97 // Notification received on a plugin issued resource request |
| 95 // creation. | 98 // creation. |
| 96 void OnResourceCreated(int resource_id, HANDLE cookie); | 99 void OnResourceCreated(int resource_id, HANDLE cookie); |
| 97 | 100 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // These hold the bitmap of the background image. | 176 // These hold the bitmap of the background image. |
| 174 ScopedHandle background_shared_section_; | 177 ScopedHandle background_shared_section_; |
| 175 ScopedBitmap background_bitmap_; | 178 ScopedBitmap background_bitmap_; |
| 176 ScopedHDC background_hdc_; | 179 ScopedHDC background_hdc_; |
| 177 #endif | 180 #endif |
| 178 | 181 |
| 179 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 182 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 180 }; | 183 }; |
| 181 | 184 |
| 182 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 185 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |