| 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/browser/loader/buffered_resource_handler.h" | 5 #include "content/browser/loader/buffered_resource_handler.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 return must_download_; | 437 return must_download_; |
| 438 } | 438 } |
| 439 | 439 |
| 440 bool BufferedResourceHandler::HasSupportingPlugin(bool* stale) { | 440 bool BufferedResourceHandler::HasSupportingPlugin(bool* stale) { |
| 441 #if defined(ENABLE_PLUGINS) | 441 #if defined(ENABLE_PLUGINS) |
| 442 ResourceRequestInfoImpl* info = GetRequestInfo(); | 442 ResourceRequestInfoImpl* info = GetRequestInfo(); |
| 443 | 443 |
| 444 bool allow_wildcard = false; | 444 bool allow_wildcard = false; |
| 445 WebPluginInfo plugin; | 445 WebPluginInfo plugin; |
| 446 return PluginServiceImpl::GetInstance()->GetPluginInfo( | 446 return PluginServiceImpl::GetInstance()->GetPluginInfo( |
| 447 info->GetChildID(), info->GetRouteID(), info->GetContext(), | 447 info->GetChildID(), info->GetRenderFrameID(), info->GetContext(), |
| 448 request()->url(), GURL(), response_->head.mime_type, allow_wildcard, | 448 request()->url(), GURL(), response_->head.mime_type, allow_wildcard, |
| 449 stale, &plugin, NULL); | 449 stale, &plugin, NULL); |
| 450 #else | 450 #else |
| 451 if (stale) | 451 if (stale) |
| 452 *stale = false; | 452 *stale = false; |
| 453 return false; | 453 return false; |
| 454 #endif | 454 #endif |
| 455 } | 455 } |
| 456 | 456 |
| 457 bool BufferedResourceHandler::CopyReadBufferToNextHandler(int request_id) { | 457 bool BufferedResourceHandler::CopyReadBufferToNextHandler(int request_id) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 472 const std::vector<WebPluginInfo>& plugins) { | 472 const std::vector<WebPluginInfo>& plugins) { |
| 473 bool defer = false; | 473 bool defer = false; |
| 474 if (!ProcessResponse(&defer)) { | 474 if (!ProcessResponse(&defer)) { |
| 475 controller()->Cancel(); | 475 controller()->Cancel(); |
| 476 } else if (!defer) { | 476 } else if (!defer) { |
| 477 controller()->Resume(); | 477 controller()->Resume(); |
| 478 } | 478 } |
| 479 } | 479 } |
| 480 | 480 |
| 481 } // namespace content | 481 } // namespace content |
| OLD | NEW |