| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ | 5 #ifndef COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ |
| 6 #define COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ | 6 #define COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_channel_proxy.h" | 8 #include "ipc/ipc_channel_proxy.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 virtual void OnFilterRemoved() OVERRIDE; | 23 virtual void OnFilterRemoved() OVERRIDE; |
| 24 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 24 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 virtual ~ChildTraceMessageFilter(); | 27 virtual ~ChildTraceMessageFilter(); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // Message handlers. | 30 // Message handlers. |
| 31 void OnBeginTracing(const std::vector<std::string>& included_categories, | 31 void OnBeginTracing(const std::vector<std::string>& included_categories, |
| 32 const std::vector<std::string>& excluded_categories, | 32 const std::vector<std::string>& excluded_categories, |
| 33 base::TimeTicks browser_time); | 33 base::TimeTicks browser_time, |
| 34 int mode); |
| 34 void OnEndTracing(); | 35 void OnEndTracing(); |
| 35 void OnGetTraceBufferPercentFull(); | 36 void OnGetTraceBufferPercentFull(); |
| 36 void OnSetWatchEvent(const std::string& category_name, | 37 void OnSetWatchEvent(const std::string& category_name, |
| 37 const std::string& event_name); | 38 const std::string& event_name); |
| 38 void OnCancelWatchEvent(); | 39 void OnCancelWatchEvent(); |
| 39 | 40 |
| 40 // Callback from trace subsystem. | 41 // Callback from trace subsystem. |
| 41 void OnTraceDataCollected( | 42 void OnTraceDataCollected( |
| 42 const scoped_refptr<base::RefCountedString>& events_str_ptr); | 43 const scoped_refptr<base::RefCountedString>& events_str_ptr); |
| 43 void OnTraceNotification(int notification); | 44 void OnTraceNotification(int notification); |
| 44 | 45 |
| 45 IPC::Channel* channel_; | 46 IPC::Channel* channel_; |
| 46 base::MessageLoopProxy* ipc_message_loop_; | 47 base::MessageLoopProxy* ipc_message_loop_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); | 49 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace components | 52 } // namespace components |
| 52 | 53 |
| 53 #endif // COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ | 54 #endif // COMPONENTS_TRACING_CHILD_TRACE_MESSAGE_FILTER_H_ |
| OLD | NEW |