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

Side by Side Diff: content/browser/trace_message_filter.h

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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_TRACE_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
12 12
13 namespace content {
14
13 // This class sends and receives trace messages on the browser process. 15 // This class sends and receives trace messages on the browser process.
14 // See also: trace_controller.h 16 // See also: trace_controller.h
15 // See also: child_trace_message_filter.h 17 // See also: child_trace_message_filter.h
16 class TraceMessageFilter : public content::BrowserMessageFilter { 18 class TraceMessageFilter : public BrowserMessageFilter {
17 public: 19 public:
18 TraceMessageFilter(); 20 TraceMessageFilter();
19 21
20 // content::BrowserMessageFilter override. 22 // BrowserMessageFilter override.
21 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 23 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
22 24
23 // content::BrowserMessageFilter implementation. 25 // BrowserMessageFilter implementation.
24 virtual void OnChannelClosing() OVERRIDE; 26 virtual void OnChannelClosing() OVERRIDE;
25 virtual bool OnMessageReceived(const IPC::Message& message, 27 virtual bool OnMessageReceived(const IPC::Message& message,
26 bool* message_was_ok) OVERRIDE; 28 bool* message_was_ok) OVERRIDE;
27 29
28 void SendBeginTracing(const std::vector<std::string>& included_categories, 30 void SendBeginTracing(const std::vector<std::string>& included_categories,
29 const std::vector<std::string>& excluded_categories); 31 const std::vector<std::string>& excluded_categories);
30 void SendEndTracing(); 32 void SendEndTracing();
31 void SendGetTraceBufferPercentFull(); 33 void SendGetTraceBufferPercentFull();
32 void SendSetWatchEvent(const std::string& category_name, 34 void SendSetWatchEvent(const std::string& category_name,
33 const std::string& event_name); 35 const std::string& event_name);
(...skipping 14 matching lines...) Expand all
48 bool has_child_; 50 bool has_child_;
49 51
50 // Awaiting ack for previously sent SendEndTracing 52 // Awaiting ack for previously sent SendEndTracing
51 bool is_awaiting_end_ack_; 53 bool is_awaiting_end_ack_;
52 // Awaiting ack for previously sent SendGetTraceBufferPercentFull 54 // Awaiting ack for previously sent SendGetTraceBufferPercentFull
53 bool is_awaiting_buffer_percent_full_ack_; 55 bool is_awaiting_buffer_percent_full_ack_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter); 57 DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter);
56 }; 58 };
57 59
60 } // namespace content
61
58 #endif // CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_ 62 #endif // CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698