Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 7791005: Stop using the default profile's proxy service for plugin proxy requests, and instead use the ass... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix test Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_handle.h" 10 #include "base/memory/scoped_handle.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 &success)); 231 &success));
232 if (!success) 232 if (!success)
233 return NULL; 233 return NULL;
234 234
235 plugin_element_ = NPObjectProxy::Create( 235 plugin_element_ = NPObjectProxy::Create(
236 channel_, npobject_route_id, containing_window_, page_url_); 236 channel_, npobject_route_id, containing_window_, page_url_);
237 237
238 return plugin_element_; 238 return plugin_element_;
239 } 239 }
240 240
241 bool WebPluginProxy::FindProxyForUrl(const GURL& url, std::string* proxy_list) {
242 bool result = false;
243 Send(new PluginHostMsg_ResolveProxy(route_id_, url, &result, proxy_list));
244 return result;
245 }
246
241 void WebPluginProxy::SetCookie(const GURL& url, 247 void WebPluginProxy::SetCookie(const GURL& url,
242 const GURL& first_party_for_cookies, 248 const GURL& first_party_for_cookies,
243 const std::string& cookie) { 249 const std::string& cookie) {
244 Send(new PluginHostMsg_SetCookie(route_id_, url, 250 Send(new PluginHostMsg_SetCookie(route_id_, url,
245 first_party_for_cookies, cookie)); 251 first_party_for_cookies, cookie));
246 } 252 }
247 253
248 std::string WebPluginProxy::GetCookies(const GURL& url, 254 std::string WebPluginProxy::GetCookies(const GURL& url,
249 const GURL& first_party_for_cookies) { 255 const GURL& first_party_for_cookies) {
250 std::string cookies; 256 std::string cookies;
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 resource_clients_.erase(index++); 744 resource_clients_.erase(index++);
739 } else { 745 } else {
740 index++; 746 index++;
741 } 747 }
742 } 748 }
743 } 749 }
744 750
745 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { 751 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) {
746 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); 752 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id));
747 } 753 }
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698