| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // marshalled WebPlugin calls. | 46 // marshalled WebPlugin calls. |
| 47 WebPluginProxy(PluginChannel* channel, | 47 WebPluginProxy(PluginChannel* channel, |
| 48 int route_id, | 48 int route_id, |
| 49 const GURL& page_url, | 49 const GURL& page_url, |
| 50 int host_render_view_routing_id); | 50 int host_render_view_routing_id); |
| 51 ~WebPluginProxy() override; | 51 ~WebPluginProxy() override; |
| 52 | 52 |
| 53 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } | 53 void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; } |
| 54 | 54 |
| 55 // WebPlugin overrides | 55 // WebPlugin overrides |
| 56 void SetWindow(gfx::PluginWindowHandle window) override; | |
| 57 void SetAcceptsInputEvents(bool accepts) override; | |
| 58 void WillDestroyWindow(gfx::PluginWindowHandle window) override; | |
| 59 void Invalidate() override; | 56 void Invalidate() override; |
| 60 void InvalidateRect(const gfx::Rect& rect) override; | 57 void InvalidateRect(const gfx::Rect& rect) override; |
| 61 NPObject* GetWindowScriptNPObject() override; | 58 NPObject* GetWindowScriptNPObject() override; |
| 62 NPObject* GetPluginElement() override; | 59 NPObject* GetPluginElement() override; |
| 63 bool FindProxyForUrl(const GURL& url, std::string* proxy_list) override; | 60 bool FindProxyForUrl(const GURL& url, std::string* proxy_list) override; |
| 64 void SetCookie(const GURL& url, | 61 void SetCookie(const GURL& url, |
| 65 const GURL& first_party_for_cookies, | 62 const GURL& first_party_for_cookies, |
| 66 const std::string& cookie) override; | 63 const std::string& cookie) override; |
| 67 std::string GetCookies(const GURL& url, | 64 std::string GetCookies(const GURL& url, |
| 68 const GURL& first_party_for_cookies) override; | 65 const GURL& first_party_for_cookies) override; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 183 |
| 187 // Contains the routing id of the host render view. | 184 // Contains the routing id of the host render view. |
| 188 int host_render_view_routing_id_; | 185 int host_render_view_routing_id_; |
| 189 | 186 |
| 190 base::WeakPtrFactory<WebPluginProxy> weak_factory_; | 187 base::WeakPtrFactory<WebPluginProxy> weak_factory_; |
| 191 }; | 188 }; |
| 192 | 189 |
| 193 } // namespace content | 190 } // namespace content |
| 194 | 191 |
| 195 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 192 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
| OLD | NEW |