| OLD | NEW |
| 1 // Copyright (c) 2009 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" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 CPBrowsingContext GetCPBrowsingContext(); | 80 CPBrowsingContext GetCPBrowsingContext(); |
| 81 | 81 |
| 82 // Retrieves the WebPluginProxy for the given context that was returned by | 82 // Retrieves the WebPluginProxy for the given context that was returned by |
| 83 // GetCPBrowsingContext, or NULL if not found. | 83 // GetCPBrowsingContext, or NULL if not found. |
| 84 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); | 84 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); |
| 85 | 85 |
| 86 // Returns a WebPluginResourceClient object given its id, or NULL if no | 86 // Returns a WebPluginResourceClient object given its id, or NULL if no |
| 87 // object with that id exists. | 87 // object with that id exists. |
| 88 webkit_glue::WebPluginResourceClient* GetResourceClient(int id); | 88 webkit_glue::WebPluginResourceClient* GetResourceClient(int id); |
| 89 | 89 |
| 90 // Returns the process id of the renderer that contains this plugin. | 90 // Returns the id of the renderer that contains this plugin. |
| 91 int GetRendererProcessId(); | 91 int GetRendererId(); |
| 92 | 92 |
| 93 // For windowless plugins, paints the given rectangle into the local buffer. | 93 // For windowless plugins, paints the given rectangle into the local buffer. |
| 94 void Paint(const gfx::Rect& rect); | 94 void Paint(const gfx::Rect& rect); |
| 95 | 95 |
| 96 // Callback from the renderer to let us know that a paint occurred. | 96 // Callback from the renderer to let us know that a paint occurred. |
| 97 void DidPaint(); | 97 void DidPaint(); |
| 98 | 98 |
| 99 // Notification received on a plugin issued resource request | 99 // Notification received on a plugin issued resource request |
| 100 // creation. | 100 // creation. |
| 101 void OnResourceCreated(int resource_id, HANDLE cookie); | 101 void OnResourceCreated(int resource_id, HANDLE cookie); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 scoped_ptr<TransportDIB> windowless_dib_; | 192 scoped_ptr<TransportDIB> windowless_dib_; |
| 193 scoped_ptr<TransportDIB> background_dib_; | 193 scoped_ptr<TransportDIB> background_dib_; |
| 194 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; | 194 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; |
| 195 scoped_ptr<skia::PlatformCanvas> background_canvas_; | 195 scoped_ptr<skia::PlatformCanvas> background_canvas_; |
| 196 #endif | 196 #endif |
| 197 | 197 |
| 198 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 198 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 201 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |