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

Side by Side Diff: content/browser/loader/buffered_resource_handler.cc

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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) 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
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
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
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698