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

Side by Side Diff: content/browser/tracing/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: TraceMode conversion to/from strings. 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
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_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // BrowserMessageFilter override. 22 // BrowserMessageFilter override.
23 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 23 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
24 24
25 // BrowserMessageFilter implementation. 25 // BrowserMessageFilter implementation.
26 virtual void OnChannelClosing() OVERRIDE; 26 virtual void OnChannelClosing() OVERRIDE;
27 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message,
28 bool* message_was_ok) OVERRIDE; 28 bool* message_was_ok) OVERRIDE;
29 29
30 void SendBeginTracing(const std::vector<std::string>& included_categories, 30 void SendBeginTracing(const std::vector<std::string>& included_categories,
31 const std::vector<std::string>& excluded_categories); 31 const std::vector<std::string>& excluded_categories,
32 base::debug::TraceLog::TraceMode mode_);
32 void SendEndTracing(); 33 void SendEndTracing();
33 void SendGetTraceBufferPercentFull(); 34 void SendGetTraceBufferPercentFull();
34 void SendSetWatchEvent(const std::string& category_name, 35 void SendSetWatchEvent(const std::string& category_name,
35 const std::string& event_name); 36 const std::string& event_name);
36 void SendCancelWatchEvent(); 37 void SendCancelWatchEvent();
37 38
38 protected: 39 protected:
39 virtual ~TraceMessageFilter(); 40 virtual ~TraceMessageFilter();
40 41
41 private: 42 private:
(...skipping 11 matching lines...) Expand all
53 bool is_awaiting_end_ack_; 54 bool is_awaiting_end_ack_;
54 // Awaiting ack for previously sent SendGetTraceBufferPercentFull 55 // Awaiting ack for previously sent SendGetTraceBufferPercentFull
55 bool is_awaiting_buffer_percent_full_ack_; 56 bool is_awaiting_buffer_percent_full_ack_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter); 58 DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter);
58 }; 59 };
59 60
60 } // namespace content 61 } // namespace content
61 62
62 #endif // CONTENT_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_ 63 #endif // CONTENT_BROWSER_TRACING_TRACE_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698