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 #include "components/startup_metric_utils/browser/startup_metric_message_filter.
h" |
| 6 |
| 7 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
| 8 #include "components/startup_metric_utils/common/startup_metric_messages.h" |
| 9 |
| 10 namespace startup_metric_utils { |
| 11 |
| 12 StartupMetricMessageFilter::StartupMetricMessageFilter() |
| 13 : content::BrowserMessageFilter(StartupMetricMsgStart) {} |
| 14 |
| 15 bool StartupMetricMessageFilter::OnMessageReceived( |
| 16 const IPC::Message& message) { |
| 17 bool handled = true; |
| 18 IPC_BEGIN_MESSAGE_MAP(StartupMetricMessageFilter, message) |
| 19 IPC_MESSAGE_HANDLER(StartupMetricHostMsg_RecordRendererMainEntryTime, |
| 20 OnRecordRendererMainEntryTime) |
| 21 IPC_MESSAGE_UNHANDLED(handled = false) |
| 22 IPC_END_MESSAGE_MAP() |
| 23 return handled; |
| 24 } |
| 25 |
| 26 void StartupMetricMessageFilter::OnRecordRendererMainEntryTime( |
| 27 const base::TimeTicks& renderer_main_entry_time) { |
| 28 RecordRendererMainEntryTime(renderer_main_entry_time); |
| 29 } |
| 30 |
| 31 } // namespace startup_metric_utils |
OLD | NEW |