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

Unified Diff: content/browser/loader/resource_scheduler_filter.cc

Issue 12321055: Revert 183382 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1418/src/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_scheduler_filter.cc
===================================================================
--- content/browser/loader/resource_scheduler_filter.cc (revision 183842)
+++ content/browser/loader/resource_scheduler_filter.cc (working copy)
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/loader/resource_scheduler_filter.h"
-
-#include "content/browser/loader/resource_dispatcher_host_impl.h"
-#include "content/browser/loader/resource_scheduler.h"
-#include "content/common/view_messages.h"
-#include "content/public/common/page_transition_types.h"
-
-namespace content {
-
-ResourceSchedulerFilter::ResourceSchedulerFilter(int child_id)
- : child_id_(child_id),
- resource_scheduler_(ResourceDispatcherHostImpl::Get()->scheduler()) {
-}
-
-ResourceSchedulerFilter::~ResourceSchedulerFilter() {
-}
-
-bool ResourceSchedulerFilter::OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) {
- switch (message.type()) {
- case ViewHostMsg_FrameNavigate::ID: {
- PickleIterator iter(message);
- ViewHostMsg_FrameNavigate_Params params;
- if (!IPC::ParamTraits<ViewHostMsg_FrameNavigate_Params>::Read(
- &message, &iter, &params)) {
- break;
- }
- if (PageTransitionIsMainFrame(params.transition)) {
- resource_scheduler_->OnNavigate(child_id_, message.routing_id());
- }
- break;
- }
-
- case ViewHostMsg_WillInsertBody::ID:
- resource_scheduler_->OnWillInsertBody(child_id_, message.routing_id());
- break;
-
- default:
- break;
- }
-
- return false;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/loader/resource_scheduler_filter.h ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698