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 CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 unsigned long resource_id, int range_request_id) = 0; | 129 unsigned long resource_id, int range_request_id) = 0; |
130 | 130 |
131 // Tell the plugin that the given URL should be fetched. This is a result of | 131 // Tell the plugin that the given URL should be fetched. This is a result of |
132 // loading the plugin data or the plugin calling HandleURLRequest which didn't | 132 // loading the plugin data or the plugin calling HandleURLRequest which didn't |
133 // end up being routed to another frame or being a javscript:// URL. | 133 // end up being routed to another frame or being a javscript:// URL. |
134 virtual void FetchURL(unsigned long resource_id, | 134 virtual void FetchURL(unsigned long resource_id, |
135 int notify_id, | 135 int notify_id, |
136 const GURL& url, | 136 const GURL& url, |
137 const GURL& first_party_for_cookies, | 137 const GURL& first_party_for_cookies, |
138 const std::string& method, | 138 const std::string& method, |
139 const std::string& post_data, | 139 const char* buf, |
| 140 unsigned int len, |
140 const GURL& referrer, | 141 const GURL& referrer, |
141 bool notify_redirects, | 142 bool notify_redirects, |
142 bool is_plugin_src_load, | 143 bool is_plugin_src_load, |
143 int origin_pid, | 144 int origin_pid, |
144 int render_view_id) = 0; | 145 int render_view_id) = 0; |
145 | 146 |
146 }; | 147 }; |
147 | 148 |
148 } // namespace content | 149 } // namespace content |
149 | 150 |
150 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ | 151 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_H_ |
OLD | NEW |