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

Unified Diff: components/startup_metric_utils/browser/startup_metric_message_filter.h

Issue 1413533008: Add UMA metric: Startup.BrowserMainToRendererMain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: components/startup_metric_utils/browser/startup_metric_message_filter.h
diff --git a/components/startup_metric_utils/browser/startup_metric_message_filter.h b/components/startup_metric_utils/browser/startup_metric_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..282ffa5c03deacb66d987be405401ac22d55648a
--- /dev/null
+++ b/components/startup_metric_utils/browser/startup_metric_message_filter.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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 COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER_H_
+#define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER_H_
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "content/public/browser/browser_message_filter.h"
+
+namespace startup_metric_utils {
+
+class StartupMetricMessageFilter : public content::BrowserMessageFilter {
+ public:
+ StartupMetricMessageFilter();
gab 2015/11/06 18:05:17 I think the style now allows to use StartupMetric
fdoray 2015/11/09 15:53:56 Done, for the destructor. The constructor cannot b
gab 2015/11/09 16:01:28 Yes, essentially inlining this class' destructor w
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ private:
+ ~StartupMetricMessageFilter() override;
+ void OnRecordRendererMainEntryTime(int64_t renderer_main_entry_time);
+
+ DISALLOW_COPY_AND_ASSIGN(StartupMetricMessageFilter);
+};
+
+} // namespace startup_metric_utils
+
+#endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698