| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER_H_ | |
| 6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/time/time.h" | |
| 12 #include "content/public/browser/browser_message_filter.h" | |
| 13 | |
| 14 namespace startup_metric_utils { | |
| 15 | |
| 16 class StartupMetricMessageFilter : public content::BrowserMessageFilter { | |
| 17 public: | |
| 18 StartupMetricMessageFilter(); | |
| 19 bool OnMessageReceived(const IPC::Message& message) override; | |
| 20 | |
| 21 private: | |
| 22 ~StartupMetricMessageFilter() override = default; | |
| 23 void OnRecordRendererMainEntryTime( | |
| 24 const base::TimeTicks& renderer_main_entry_time); | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(StartupMetricMessageFilter); | |
| 27 }; | |
| 28 | |
| 29 } // namespace startup_metric_utils | |
| 30 | |
| 31 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_MESSAGE_FILTER
_H_ | |
| OLD | NEW |