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

Unified Diff: content/common/child_resource_message_filter.h

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_process.cc ('k') | content/common/child_resource_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_resource_message_filter.h
diff --git a/content/common/child_resource_message_filter.h b/content/common/child_resource_message_filter.h
deleted file mode 100644
index 5fa39b5c07ea802e11d34c93b5286522b66a43a3..0000000000000000000000000000000000000000
--- a/content/common/child_resource_message_filter.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef CONTENT_COMMON_CHILD_RESOURCE_MESSAGE_FILTER_H_
-#define CONTENT_COMMON_CHILD_RESOURCE_MESSAGE_FILTER_H_
-
-#include "base/memory/ref_counted.h"
-#include "ipc/ipc_channel_proxy.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace content {
-class ResourceDispatcher;
-
-// Supplies ResourceDispatcher with timestamps for some resource messages.
-//
-// Background: ResourceDispatcher converts browser process time to child
-// process time. This is done to achieve coherent timeline. Conversion is
-// a linear transformation such that given browser process time range is
-// mapped to corresponding child process time range. Timestamps for child
-// process time range should be taken by IO thread when resource messages
-// arrive. Otherwise, timestamps may be affected by long rendering / JS task.
-//
-// When specific message is processed by this filter, new task charged
-// with timestamp is posted to main thread. This task is processed just before
-// resource message and invokes ResourceDispatcher::set_io_timestamp.
-class ChildResourceMessageFilter : public IPC::ChannelProxy::MessageFilter {
- public:
- explicit ChildResourceMessageFilter(ResourceDispatcher* resource_dispatcher);
-
- // IPC::ChannelProxy::MessageFilter implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- private:
- virtual ~ChildResourceMessageFilter();
-
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
- ResourceDispatcher* resource_dispatcher_;
-
- DISALLOW_COPY_AND_ASSIGN(ChildResourceMessageFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_CHILD_RESOURCE_MESSAGE_FILTER_H_
« no previous file with comments | « content/common/child_process.cc ('k') | content/common/child_resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698