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

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: Fix review comments 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..17e2b6b184e7a063fe6a7846c81d771f3bfca13f
--- /dev/null
+++ b/content/browser/stats_collection_message_filter.h
@@ -0,0 +1,39 @@
+// 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/public/browser/browser_message_filter.h"
+#include "content/public/browser/notification_observer.h"
+
+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;
+
+ // BrowserMessageFilter implementation.
bulach 2013/03/11 19:11:37 nit: I think you can remove 23-24 so it relies on
jeremy 2013/03/13 12:07:37 Done.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+
+ private:
+ virtual ~StatsCollectionMessageFilter();
+
+ // Message handlers.
+ void OnGetTabLoadTimingInformation(std::string* tab_timing_json);
+
+ DISALLOW_COPY_AND_ASSIGN(StatsCollectionMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698