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 #include "content/renderer/npapi/webplugin_delegate_proxy.h" | 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h" |
6 | 6 |
7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #elif defined(USE_X11) | 9 #elif defined(USE_X11) |
10 #include <cairo/cairo.h> | 10 #include <cairo/cairo.h> |
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 int notify_id, | 1121 int notify_id, |
1122 const GURL& url, | 1122 const GURL& url, |
1123 const GURL& first_party_for_cookies, | 1123 const GURL& first_party_for_cookies, |
1124 const std::string& method, | 1124 const std::string& method, |
1125 const char* buf, | 1125 const char* buf, |
1126 unsigned int len, | 1126 unsigned int len, |
1127 const GURL& referrer, | 1127 const GURL& referrer, |
1128 bool notify_redirects, | 1128 bool notify_redirects, |
1129 bool is_plugin_src_load, | 1129 bool is_plugin_src_load, |
1130 int origin_pid, | 1130 int origin_pid, |
1131 int render_frame_id) { | 1131 int render_frame_id, |
| 1132 int render_view_id) { |
1132 PluginMsg_FetchURL_Params params; | 1133 PluginMsg_FetchURL_Params params; |
1133 params.resource_id = resource_id; | 1134 params.resource_id = resource_id; |
1134 params.notify_id = notify_id; | 1135 params.notify_id = notify_id; |
1135 params.url = url; | 1136 params.url = url; |
1136 params.first_party_for_cookies = first_party_for_cookies; | 1137 params.first_party_for_cookies = first_party_for_cookies; |
1137 params.method = method; | 1138 params.method = method; |
1138 if (len) { | 1139 if (len) { |
1139 params.post_data.resize(len); | 1140 params.post_data.resize(len); |
1140 memcpy(¶ms.post_data.front(), buf, len); | 1141 memcpy(¶ms.post_data.front(), buf, len); |
1141 } | 1142 } |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 | 1240 |
1240 plugin_->URLRedirectResponse(allow, resource_id); | 1241 plugin_->URLRedirectResponse(allow, resource_id); |
1241 } | 1242 } |
1242 | 1243 |
1243 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, | 1244 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, |
1244 bool* result) { | 1245 bool* result) { |
1245 *result = plugin_->CheckIfRunInsecureContent(url); | 1246 *result = plugin_->CheckIfRunInsecureContent(url); |
1246 } | 1247 } |
1247 | 1248 |
1248 } // namespace content | 1249 } // namespace content |
OLD | NEW |