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

Unified Diff: content/common/child_resource_message_filter.cc

Issue 16328003: Move a bunch of child-only code from content/common to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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
« no previous file with comments | « content/common/child_resource_message_filter.h ('k') | content/common/child_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_resource_message_filter.cc
diff --git a/content/common/child_resource_message_filter.cc b/content/common/child_resource_message_filter.cc
deleted file mode 100644
index efdfd7c669a4bdea237f80c289872cc578ed6a26..0000000000000000000000000000000000000000
--- a/content/common/child_resource_message_filter.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2013 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/common/child_resource_message_filter.h"
-
-#include "base/thread_task_runner_handle.h"
-#include "content/common/resource_dispatcher.h"
-#include "content/common/resource_messages.h"
-
-namespace content {
-
-ChildResourceMessageFilter::ChildResourceMessageFilter(
- ResourceDispatcher* resource_dispatcher)
- : main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
- resource_dispatcher_(resource_dispatcher) {}
-
-ChildResourceMessageFilter::~ChildResourceMessageFilter() {}
-
-bool ChildResourceMessageFilter::OnMessageReceived(
- const IPC::Message& message) {
- if (message.type() == ResourceMsg_RequestComplete::ID ||
- message.type() == ResourceMsg_ReceivedResponse::ID ||
- message.type() == ResourceMsg_ReceivedRedirect::ID) {
- main_thread_task_runner_->PostTask(FROM_HERE, base::Bind(
- &ResourceDispatcher::set_io_timestamp,
- base::Unretained(resource_dispatcher_),
- base::TimeTicks::Now()));
- }
- return false;
-}
-
-} // namespace content
« no previous file with comments | « content/common/child_resource_message_filter.h ('k') | content/common/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698