Chromium Code Reviews| Index: content/browser/stats_collection_message_filter.h |
| diff --git a/content/browser/stats_collection_message_filter.h b/content/browser/stats_collection_message_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..09c8e3d05c9db1479c76f11eb1da7465d2592d98 |
| --- /dev/null |
| +++ b/content/browser/stats_collection_message_filter.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2013 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 CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_ |
| +#define CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_ |
| + |
| +#include <string> |
| + |
| +#include "content/common/tab_load_stats.h" |
| +#include "content/public/browser/browser_message_filter.h" |
| +#include "content/public/browser/notification_observer.h" |
| + |
| +namespace base { |
| + class DictionaryValue; |
|
Avi (use Gerrit)
2013/04/04 15:41:56
No indent inside namespaces.
jeremy
2013/04/07 14:51:54
Done.
|
| +} // namespace base |
| + |
| +namespace content { |
| + |
| +// This class sends and receives messages concerning stats collection in the |
| +// browser process. |
| +class StatsCollectionMessageFilter : public BrowserMessageFilter { |
| + public: |
| + StatsCollectionMessageFilter(); |
| + |
| + // BrowserMessageFilter implementation. |
| + virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| + virtual bool OnMessageReceived(const IPC::Message& message, |
| + bool* message_was_ok) OVERRIDE; |
| + |
| + private: |
| + virtual ~StatsCollectionMessageFilter(); |
| + |
| + // Message handlers. |
| + void OnGetTabLoadTimingInformation(int routing_id, |
| + TabLoadTime* tab_timing_data, |
| + base::TimeTicks* timer_start); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(StatsCollectionMessageFilter); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_STATS_COLLECTION_MESSAGE_FILTER_H_ |