| 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 725 |
| 726 WebCookieJar* cookie_jar = page_delegate_->GetCookieJar(); | 726 WebCookieJar* cookie_jar = page_delegate_->GetCookieJar(); |
| 727 if (!cookie_jar) { | 727 if (!cookie_jar) { |
| 728 DLOG(WARNING) << "No cookie jar!"; | 728 DLOG(WARNING) << "No cookie jar!"; |
| 729 return std::string(); | 729 return std::string(); |
| 730 } | 730 } |
| 731 | 731 |
| 732 return UTF16ToUTF8(cookie_jar->cookies(url, first_party_for_cookies)); | 732 return UTF16ToUTF8(cookie_jar->cookies(url, first_party_for_cookies)); |
| 733 } | 733 } |
| 734 | 734 |
| 735 void WebPluginImpl::OnMissingPluginStatus(int status) { | |
| 736 NOTREACHED(); | |
| 737 } | |
| 738 | |
| 739 void WebPluginImpl::URLRedirectResponse(bool allow, int resource_id) { | 735 void WebPluginImpl::URLRedirectResponse(bool allow, int resource_id) { |
| 740 for (size_t i = 0; i < clients_.size(); ++i) { | 736 for (size_t i = 0; i < clients_.size(); ++i) { |
| 741 if (clients_[i].id == static_cast<unsigned long>(resource_id)) { | 737 if (clients_[i].id == static_cast<unsigned long>(resource_id)) { |
| 742 if (clients_[i].loader.get()) { | 738 if (clients_[i].loader.get()) { |
| 743 if (allow) { | 739 if (allow) { |
| 744 clients_[i].loader->setDefersLoading(false); | 740 clients_[i].loader->setDefersLoading(false); |
| 745 } else { | 741 } else { |
| 746 clients_[i].loader->cancel(); | 742 clients_[i].loader->cancel(); |
| 747 clients_[i].client->DidFail(); | 743 clients_[i].client->DidFail(); |
| 748 } | 744 } |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 webframe_->setReferrerForRequest(*request, plugin_url_); | 1359 webframe_->setReferrerForRequest(*request, plugin_url_); |
| 1364 break; | 1360 break; |
| 1365 | 1361 |
| 1366 default: | 1362 default: |
| 1367 break; | 1363 break; |
| 1368 } | 1364 } |
| 1369 } | 1365 } |
| 1370 | 1366 |
| 1371 } // namespace npapi | 1367 } // namespace npapi |
| 1372 } // namespace webkit | 1368 } // namespace webkit |
| OLD | NEW |