OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 virtual void WillDestroyWindow(gfx::PluginWindowHandle window); | 98 virtual void WillDestroyWindow(gfx::PluginWindowHandle window); |
99 #if defined(OS_WIN) | 99 #if defined(OS_WIN) |
100 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } | 100 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } |
101 void ReparentPluginWindow(HWND window, HWND parent) { } | 101 void ReparentPluginWindow(HWND window, HWND parent) { } |
102 #endif | 102 #endif |
103 virtual void CancelResource(unsigned long id); | 103 virtual void CancelResource(unsigned long id); |
104 virtual void Invalidate(); | 104 virtual void Invalidate(); |
105 virtual void InvalidateRect(const gfx::Rect& rect); | 105 virtual void InvalidateRect(const gfx::Rect& rect); |
106 virtual NPObject* GetWindowScriptNPObject(); | 106 virtual NPObject* GetWindowScriptNPObject(); |
107 virtual NPObject* GetPluginElement(); | 107 virtual NPObject* GetPluginElement(); |
| 108 virtual bool FindProxyForUrl(const GURL& url, std::string* proxy_list); |
108 virtual void SetCookie(const GURL& url, | 109 virtual void SetCookie(const GURL& url, |
109 const GURL& first_party_for_cookies, | 110 const GURL& first_party_for_cookies, |
110 const std::string& cookie); | 111 const std::string& cookie); |
111 virtual std::string GetCookies(const GURL& url, | 112 virtual std::string GetCookies(const GURL& url, |
112 const GURL& first_party_for_cookies); | 113 const GURL& first_party_for_cookies); |
113 virtual void OnMissingPluginStatus(int status); | 114 virtual void OnMissingPluginStatus(int status); |
114 | 115 |
115 virtual void URLRedirectResponse(bool allow, int resource_id); | 116 virtual void URLRedirectResponse(bool allow, int resource_id); |
116 | 117 |
117 // Given a (maybe partial) url, completes using the base url. | 118 // Given a (maybe partial) url, completes using the base url. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 302 |
302 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 303 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
303 | 304 |
304 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 305 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
305 }; | 306 }; |
306 | 307 |
307 } // namespace npapi | 308 } // namespace npapi |
308 } // namespace webkit | 309 } // namespace webkit |
309 | 310 |
310 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 311 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |