OLD | NEW |
1 // Copyright (c) 2010 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_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // The pump_messages_event is a event handle which is valid only for | 85 // The pump_messages_event is a event handle which is valid only for |
86 // windowless plugins and is used in NPP_HandleEvent calls to pump messages | 86 // windowless plugins and is used in NPP_HandleEvent calls to pump messages |
87 // if the plugin enters a modal loop. | 87 // if the plugin enters a modal loop. |
88 // Cancels a pending request. | 88 // Cancels a pending request. |
89 virtual void SetWindowlessPumpEvent(HANDLE pump_messages_event) = 0; | 89 virtual void SetWindowlessPumpEvent(HANDLE pump_messages_event) = 0; |
90 #endif | 90 #endif |
91 virtual void CancelResource(unsigned long id) = 0; | 91 virtual void CancelResource(unsigned long id) = 0; |
92 virtual void Invalidate() = 0; | 92 virtual void Invalidate() = 0; |
93 virtual void InvalidateRect(const gfx::Rect& rect) = 0; | 93 virtual void InvalidateRect(const gfx::Rect& rect) = 0; |
94 | 94 |
95 // Returns the NPObject for the browser's window object. | 95 // Returns the NPObject for the browser's window object. Does not |
| 96 // take a reference. |
96 virtual NPObject* GetWindowScriptNPObject() = 0; | 97 virtual NPObject* GetWindowScriptNPObject() = 0; |
97 | 98 |
98 // Returns the DOM element that loaded the plugin. | 99 // Returns the DOM element that loaded the plugin. Does not take a |
| 100 // reference. |
99 virtual NPObject* GetPluginElement() = 0; | 101 virtual NPObject* GetPluginElement() = 0; |
100 | 102 |
101 // Cookies | 103 // Cookies |
102 virtual void SetCookie(const GURL& url, | 104 virtual void SetCookie(const GURL& url, |
103 const GURL& first_party_for_cookies, | 105 const GURL& first_party_for_cookies, |
104 const std::string& cookie) = 0; | 106 const std::string& cookie) = 0; |
105 virtual std::string GetCookies(const GURL& url, | 107 virtual std::string GetCookies(const GURL& url, |
106 const GURL& first_party_for_cookies) = 0; | 108 const GURL& first_party_for_cookies) = 0; |
107 | 109 |
108 // When a default plugin has downloaded the plugin list and finds it is | 110 // When a default plugin has downloaded the plugin list and finds it is |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 virtual void DidFinishLoading() = 0; | 190 virtual void DidFinishLoading() = 0; |
189 virtual void DidFail() = 0; | 191 virtual void DidFail() = 0; |
190 virtual bool IsMultiByteResponseExpected() = 0; | 192 virtual bool IsMultiByteResponseExpected() = 0; |
191 virtual int ResourceId() = 0; | 193 virtual int ResourceId() = 0; |
192 }; | 194 }; |
193 | 195 |
194 } // namespace npapi | 196 } // namespace npapi |
195 } // namespace webkit | 197 } // namespace webkit |
196 | 198 |
197 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 199 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
OLD | NEW |