Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: components/tracing/child_trace_message_filter.h

Issue 12302036: Add a mode flag to the tracing framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/tracing.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/test/base/tracing.cc ('k') | components/tracing/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698