Chromium Code Reviews| 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_ |