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

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

Issue 2048033004: Revert of Convert startup_metric_utils to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: Created 4 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
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..ffac9c8d40ea7f0c1e56ef273cad9a9b423c0999
--- /dev/null
+++ b/components/startup_metric_utils/browser/startup_metric_message_filter.h
@@ -0,0 +1,31 @@
+// 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 "base/time/time.h"
+#include "content/public/browser/browser_message_filter.h"
+
+namespace startup_metric_utils {
+
+class StartupMetricMessageFilter : public content::BrowserMessageFilter {
+ public:
+ StartupMetricMessageFilter();
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ private:
+ ~StartupMetricMessageFilter() override = default;
+ void OnRecordRendererMainEntryTime(
+ const base::TimeTicks& 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