| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 CPBrowsingContext GetCPBrowsingContext(); | 81 CPBrowsingContext GetCPBrowsingContext(); |
| 82 | 82 |
| 83 // Retrieves the WebPluginProxy for the given context that was returned by | 83 // Retrieves the WebPluginProxy for the given context that was returned by |
| 84 // GetCPBrowsingContext, or NULL if not found. | 84 // GetCPBrowsingContext, or NULL if not found. |
| 85 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); | 85 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); |
| 86 | 86 |
| 87 // Returns a WebPluginResourceClient object given its id, or NULL if no | 87 // Returns a WebPluginResourceClient object given its id, or NULL if no |
| 88 // object with that id exists. | 88 // object with that id exists. |
| 89 WebPluginResourceClient* GetResourceClient(int id); | 89 WebPluginResourceClient* GetResourceClient(int id); |
| 90 | 90 |
| 91 // Returns the process id of the renderer that contains this plugin. |
| 92 int GetRendererProcessId(); |
| 93 |
| 91 // For windowless plugins, paints the given rectangle into the local buffer. | 94 // For windowless plugins, paints the given rectangle into the local buffer. |
| 92 void Paint(const gfx::Rect& rect); | 95 void Paint(const gfx::Rect& rect); |
| 93 | 96 |
| 94 // Callback from the renderer to let us know that a paint occurred. | 97 // Callback from the renderer to let us know that a paint occurred. |
| 95 void DidPaint(); | 98 void DidPaint(); |
| 96 | 99 |
| 97 // Notification received on a plugin issued resource request | 100 // Notification received on a plugin issued resource request |
| 98 // creation. | 101 // creation. |
| 99 void OnResourceCreated(int resource_id, HANDLE cookie); | 102 void OnResourceCreated(int resource_id, HANDLE cookie); |
| 100 | 103 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 scoped_ptr<TransportDIB> windowless_dib_; | 184 scoped_ptr<TransportDIB> windowless_dib_; |
| 182 scoped_ptr<TransportDIB> background_dib_; | 185 scoped_ptr<TransportDIB> background_dib_; |
| 183 scoped_cftyperef<CGContextRef> windowless_context_; | 186 scoped_cftyperef<CGContextRef> windowless_context_; |
| 184 scoped_cftyperef<CGContextRef> background_context_; | 187 scoped_cftyperef<CGContextRef> background_context_; |
| 185 #endif | 188 #endif |
| 186 | 189 |
| 187 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 190 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 193 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |