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

Side by Side Diff: content/common/child_trace_message_filter.h

Issue 10837082: implement SetWatchEvent and WaitForEvent for trace-based-tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update / merge -- no change Created 8 years, 3 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 | « content/common/child_process_messages.h ('k') | content/common/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 CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_
6 #define CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ 6 #define CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 12 matching lines...) Expand all
23 23
24 protected: 24 protected:
25 virtual ~ChildTraceMessageFilter(); 25 virtual ~ChildTraceMessageFilter();
26 26
27 private: 27 private:
28 // Message handlers. 28 // Message handlers.
29 void OnBeginTracing(const std::vector<std::string>& included_categories, 29 void OnBeginTracing(const std::vector<std::string>& included_categories,
30 const std::vector<std::string>& excluded_categories); 30 const std::vector<std::string>& excluded_categories);
31 void OnEndTracing(); 31 void OnEndTracing();
32 void OnGetTraceBufferPercentFull(); 32 void OnGetTraceBufferPercentFull();
33 void OnSetWatchEvent(const std::string& category_name,
34 const std::string& event_name);
35 void OnCancelWatchEvent();
33 36
34 // Callback from trace subsystem. 37 // Callback from trace subsystem.
35 void OnTraceDataCollected( 38 void OnTraceDataCollected(
36 const scoped_refptr<base::RefCountedString>& events_str_ptr); 39 const scoped_refptr<base::RefCountedString>& events_str_ptr);
37 void OnTraceBufferFull(); 40 void OnTraceNotification(int notification);
38 41
39 IPC::Channel* channel_; 42 IPC::Channel* channel_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter); 44 DISALLOW_COPY_AND_ASSIGN(ChildTraceMessageFilter);
42 }; 45 };
43 46
44 47
45 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_ 48 #endif // CONTENT_COMMON_CHILD_TRACE_MESSAGE_FILTER_H_
46 49
OLDNEW
« no previous file with comments | « content/common/child_process_messages.h ('k') | content/common/child_trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698