Chromium Code Reviews| Index: content/browser/profiler_message_filter.h |
| =================================================================== |
| --- content/browser/profiler_message_filter.h (revision 0) |
| +++ content/browser/profiler_message_filter.h (revision 0) |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2011 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_PROFILER_MESSAGE_FILTER_H_ |
| +#define CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/process.h" |
|
jam
2011/11/28 15:17:34
not needed
ramant (doing other things)
2011/11/29 01:32:20
Done.
|
| +#include "content/common/child_process_info.h" |
|
jam
2011/11/28 15:17:34
ditto
ramant (doing other things)
2011/11/29 01:32:20
Done.
|
| +#include "content/browser/browser_message_filter.h" |
| + |
| +namespace base { |
| +class DictionaryValue; |
| +} |
| + |
| +// This class sends and receives profiler messages in the browser process. |
| +// See also: child_profiler_message_filter.h |
| +class ProfilerMessageFilter : public BrowserMessageFilter { |
| + public: |
| + ProfilerMessageFilter(); |
| + virtual ~ProfilerMessageFilter(); |
| + |
| + // BrowserMessageFilter implementation. |
| + virtual bool OnMessageReceived(const IPC::Message& message, |
| + bool* message_was_ok); |
| + |
| + private: |
| + // Message handlers. |
| + void OnChildProfilerData(int sequence_number, |
| + const base::DictionaryValue& profiler_data); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ProfilerMessageFilter); |
| +}; |
| + |
| +#endif // CONTENT_BROWSER_PROFILER_MESSAGE_FILTER_H_ |
| + |
| Property changes on: content\browser\profiler_message_filter.h |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |