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

Unified Diff: content/common/child_resource_message_filter.h

Issue 14359004: Inject renderer recieve message time into resource notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Less hacky timestamp injection. Created 7 years, 8 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/common/child_resource_message_filter.h
diff --git a/content/common/child_resource_message_filter.h b/content/common/child_resource_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f7fbf7ab6a4e23696a561569e1aeb94f24007d7
--- /dev/null
+++ b/content/common/child_resource_message_filter.h
@@ -0,0 +1,36 @@
+// Copyright (c) 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_COMMOM_CHILD_RESOURCE_MESSAGE_FILTER_H_
+#define CONTENT_COMMOM_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;
+
+class ChildResourceMessageFilter : public IPC::ChannelProxy::MessageFilter {
+ public:
+ ChildResourceMessageFilter(ResourceDispatcher* resource_dispatcher);
+
+ // IPC::ChannelProxy::MessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ private:
+ virtual ~ChildResourceMessageFilter();
+
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ ResourceDispatcher* resource_dispatcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChildResourceMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMOM_CHILD_RESOURCE_MESSAGE_FILTER_H_
« no previous file with comments | « no previous file | content/common/child_resource_message_filter.cc » ('j') | content/common/child_resource_message_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698