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

Side by Side Diff: webkit/plugins/npapi/webplugin_impl.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
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 "webkit/plugins/npapi/webplugin_impl.h" 5 #include "webkit/plugins/npapi/webplugin_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 NOTREACHED(); 695 NOTREACHED();
696 return NULL; 696 return NULL;
697 } 697 }
698 return webframe_->windowObject(); 698 return webframe_->windowObject();
699 } 699 }
700 700
701 NPObject* WebPluginImpl::GetPluginElement() { 701 NPObject* WebPluginImpl::GetPluginElement() {
702 return container_->scriptableObjectForElement(); 702 return container_->scriptableObjectForElement();
703 } 703 }
704 704
705 bool WebPluginImpl::FindProxyForUrl(const GURL& url, std::string* proxy_list) {
706 // Proxy resolving doesn't work in single-process mode.
707 return false;
708 }
709
705 void WebPluginImpl::SetCookie(const GURL& url, 710 void WebPluginImpl::SetCookie(const GURL& url,
706 const GURL& first_party_for_cookies, 711 const GURL& first_party_for_cookies,
707 const std::string& cookie) { 712 const std::string& cookie) {
708 if (!page_delegate_) 713 if (!page_delegate_)
709 return; 714 return;
710 715
711 WebCookieJar* cookie_jar = page_delegate_->GetCookieJar(); 716 WebCookieJar* cookie_jar = page_delegate_->GetCookieJar();
712 if (!cookie_jar) { 717 if (!cookie_jar) {
713 DLOG(WARNING) << "No cookie jar!"; 718 DLOG(WARNING) << "No cookie jar!";
714 return; 719 return;
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 webframe_->setReferrerForRequest(*request, plugin_url_); 1368 webframe_->setReferrerForRequest(*request, plugin_url_);
1364 break; 1369 break;
1365 1370
1366 default: 1371 default:
1367 break; 1372 break;
1368 } 1373 }
1369 } 1374 }
1370 1375
1371 } // namespace npapi 1376 } // namespace npapi
1372 } // namespace webkit 1377 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.h ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698