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

Unified Diff: content/browser/stats_collection_message_filter.h

Issue 12389073: Collect tab timing information for use in telementry-based startup tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting/compile fix Created 7 years, 9 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/stats_collection_message_filter.h
diff --git a/content/browser/stats_collection_message_filter.h b/content/browser/stats_collection_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..09c8e3d05c9db1479c76f11eb1da7465d2592d98
--- /dev/null
+++ b/content/browser/stats_collection_message_filter.h
@@ -0,0 +1,44 @@
+// 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_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_
+#define CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_
+
+#include <string>
+
+#include "content/common/tab_load_stats.h"
+#include "content/public/browser/browser_message_filter.h"
+#include "content/public/browser/notification_observer.h"
+
+namespace base {
+ class DictionaryValue;
Avi (use Gerrit) 2013/04/04 15:41:56 No indent inside namespaces.
jeremy 2013/04/07 14:51:54 Done.
+} // namespace base
+
+namespace content {
+
+// This class sends and receives messages concerning stats collection in the
+// browser process.
+class StatsCollectionMessageFilter : public BrowserMessageFilter {
+ public:
+ StatsCollectionMessageFilter();
+
+ // BrowserMessageFilter implementation.
+ virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+
+ private:
+ virtual ~StatsCollectionMessageFilter();
+
+ // Message handlers.
+ void OnGetTabLoadTimingInformation(int routing_id,
+ TabLoadTime* tab_timing_data,
+ base::TimeTicks* timer_start);
+
+ DISALLOW_COPY_AND_ASSIGN(StatsCollectionMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698