OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 PLUGIN_SRC, | 156 PLUGIN_SRC, |
157 DOCUMENT_URL, | 157 DOCUMENT_URL, |
158 NO_REFERRER | 158 NO_REFERRER |
159 }; | 159 }; |
160 | 160 |
161 // Given a download request, check if we need to route the output to a frame. | 161 // Given a download request, check if we need to route the output to a frame. |
162 // Returns ROUTED if the load is done and routed to a frame, NOT_ROUTED or | 162 // Returns ROUTED if the load is done and routed to a frame, NOT_ROUTED or |
163 // corresponding error codes otherwise. | 163 // corresponding error codes otherwise. |
164 RoutingStatus RouteToFrame(const char* url, | 164 RoutingStatus RouteToFrame(const char* url, |
165 bool is_javascript_url, | 165 bool is_javascript_url, |
| 166 bool popups_allowed, |
166 const char* method, | 167 const char* method, |
167 const char* target, | 168 const char* target, |
168 const char* buf, | 169 const char* buf, |
169 unsigned int len, | 170 unsigned int len, |
170 int notify_id, | 171 int notify_id, |
171 Referrer referrer_flag); | 172 Referrer referrer_flag); |
172 | 173 |
173 // Returns the next avaiable resource id. Returns 0 if the operation fails. | 174 // Returns the next avaiable resource id. Returns 0 if the operation fails. |
174 // It may fail if the page has already been closed. | 175 // It may fail if the page has already been closed. |
175 unsigned long GetNextResourceId(); | 176 unsigned long GetNextResourceId(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 327 |
327 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 328 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
328 | 329 |
329 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 330 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
330 }; | 331 }; |
331 | 332 |
332 } // namespace npapi | 333 } // namespace npapi |
333 } // namespace webkit | 334 } // namespace webkit |
334 | 335 |
335 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 336 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |