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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |