| 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_WEBPLUGIN_PROXY_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CHROME_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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } | 41 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } |
| 42 | 42 |
| 43 // WebPlugin overrides | 43 // WebPlugin overrides |
| 44 void SetWindow(gfx::PluginWindowHandle window); | 44 void SetWindow(gfx::PluginWindowHandle window); |
| 45 void WillDestroyWindow(gfx::PluginWindowHandle window); | 45 void WillDestroyWindow(gfx::PluginWindowHandle window); |
| 46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
| 47 void SetWindowlessPumpEvent(HANDLE pump_messages_event); | 47 void SetWindowlessPumpEvent(HANDLE pump_messages_event); |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 void CancelResource(int id); | 50 void CancelResource(unsigned long id); |
| 51 void Invalidate(); | 51 void Invalidate(); |
| 52 void InvalidateRect(const gfx::Rect& rect); | 52 void InvalidateRect(const gfx::Rect& rect); |
| 53 NPObject* GetWindowScriptNPObject(); | 53 NPObject* GetWindowScriptNPObject(); |
| 54 NPObject* GetPluginElement(); | 54 NPObject* GetPluginElement(); |
| 55 void SetCookie(const GURL& url, | 55 void SetCookie(const GURL& url, |
| 56 const GURL& first_party_for_cookies, | 56 const GURL& first_party_for_cookies, |
| 57 const std::string& cookie); | 57 const std::string& cookie); |
| 58 std::string GetCookies(const GURL& url, const GURL& first_party_for_cookies); | 58 std::string GetCookies(const GURL& url, const GURL& first_party_for_cookies); |
| 59 | 59 |
| 60 void ShowModalHTMLDialog(const GURL& url, int width, int height, | 60 void ShowModalHTMLDialog(const GURL& url, int width, int height, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ); | 119 ); |
| 120 | 120 |
| 121 void CancelDocumentLoad(); | 121 void CancelDocumentLoad(); |
| 122 | 122 |
| 123 void InitiateHTTPRangeRequest(const char* url, | 123 void InitiateHTTPRangeRequest(const char* url, |
| 124 const char* range_info, | 124 const char* range_info, |
| 125 intptr_t existing_stream, | 125 intptr_t existing_stream, |
| 126 bool notify_needed, | 126 bool notify_needed, |
| 127 intptr_t notify_data); | 127 intptr_t notify_data); |
| 128 | 128 |
| 129 void SetDeferResourceLoading(int resource_id, bool defer); | 129 void SetDeferResourceLoading(unsigned long resource_id, bool defer); |
| 130 | 130 |
| 131 bool IsOffTheRecord(); | 131 bool IsOffTheRecord(); |
| 132 | 132 |
| 133 void ResourceClientDeleted( | 133 void ResourceClientDeleted( |
| 134 webkit_glue::WebPluginResourceClient* resource_client); | 134 webkit_glue::WebPluginResourceClient* resource_client); |
| 135 | 135 |
| 136 gfx::NativeViewId containing_window() { return containing_window_; } | 136 gfx::NativeViewId containing_window() { return containing_window_; } |
| 137 | 137 |
| 138 private: | 138 private: |
| 139 bool Send(IPC::Message* msg); | 139 bool Send(IPC::Message* msg); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 #endif | 180 #endif |
| 181 | 181 |
| 182 // Contains the routing id of the host render view. | 182 // Contains the routing id of the host render view. |
| 183 int host_render_view_routing_id_; | 183 int host_render_view_routing_id_; |
| 184 | 184 |
| 185 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 185 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 188 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
| OLD | NEW |