OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 // Creates a new proxy for WebPlugin, using the given sender to send the | 29 // Creates a new proxy for WebPlugin, using the given sender to send the |
30 // marshalled WebPlugin calls. | 30 // marshalled WebPlugin calls. |
31 WebPluginProxy(PluginChannel* channel, | 31 WebPluginProxy(PluginChannel* channel, |
32 int route_id, | 32 int route_id, |
33 WebPluginDelegate* delegate, | 33 WebPluginDelegate* delegate, |
34 HANDLE modal_dialog_event); | 34 HANDLE modal_dialog_event); |
35 ~WebPluginProxy(); | 35 ~WebPluginProxy(); |
36 | 36 |
37 // WebPlugin overrides | 37 // WebPlugin overrides |
38 void SetWindow(HWND window, HANDLE pump_messages_event); | 38 bool SetWindow(HWND window, HANDLE pump_messages_event); |
39 void CancelResource(int id); | 39 void CancelResource(int id); |
40 void Invalidate(); | 40 void Invalidate(); |
41 void InvalidateRect(const gfx::Rect& rect); | 41 void InvalidateRect(const gfx::Rect& rect); |
42 NPObject* GetWindowScriptNPObject(); | 42 NPObject* GetWindowScriptNPObject(); |
43 NPObject* GetPluginElement(); | 43 NPObject* GetPluginElement(); |
44 void SetCookie(const GURL& url, | 44 void SetCookie(const GURL& url, |
45 const GURL& policy_url, | 45 const GURL& policy_url, |
46 const std::string& cookie); | 46 const std::string& cookie); |
47 std::string GetCookies(const GURL& url, const GURL& policy_url); | 47 std::string GetCookies(const GURL& url, const GURL& policy_url); |
48 | 48 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 // These hold the bitmap of the background image. | 144 // These hold the bitmap of the background image. |
145 ScopedHandle background_shared_section_; | 145 ScopedHandle background_shared_section_; |
146 ScopedBitmap background_bitmap_; | 146 ScopedBitmap background_bitmap_; |
147 ScopedHDC background_hdc_; | 147 ScopedHDC background_hdc_; |
148 | 148 |
149 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 149 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
150 }; | 150 }; |
151 | 151 |
152 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 152 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
OLD | NEW |