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

Unified Diff: content/browser/trace_message_filter.h

Issue 12149003: Move tracing code in content\browser to content\browser\tracing now that there's a separate directo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android and sync Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/trace_controller_impl.cc ('k') | content/browser/trace_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/trace_message_filter.h
===================================================================
--- content/browser/trace_message_filter.h (revision 180062)
+++ content/browser/trace_message_filter.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
-#define CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
-
-#include <string>
-#include <vector>
-
-#include "content/public/browser/browser_message_filter.h"
-
-namespace content {
-
-// This class sends and receives trace messages on the browser process.
-// See also: trace_controller.h
-// See also: child_trace_message_filter.h
-class TraceMessageFilter : public BrowserMessageFilter {
- public:
- TraceMessageFilter();
-
- // BrowserMessageFilter override.
- virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
-
- // BrowserMessageFilter implementation.
- virtual void OnChannelClosing() OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) OVERRIDE;
-
- void SendBeginTracing(const std::vector<std::string>& included_categories,
- const std::vector<std::string>& excluded_categories);
- void SendEndTracing();
- void SendGetTraceBufferPercentFull();
- void SendSetWatchEvent(const std::string& category_name,
- const std::string& event_name);
- void SendCancelWatchEvent();
-
- protected:
- virtual ~TraceMessageFilter();
-
- private:
- // Message handlers.
- void OnChildSupportsTracing();
- void OnEndTracingAck(const std::vector<std::string>& known_categories);
- void OnTraceNotification(int notification);
- void OnTraceBufferPercentFullReply(float percent_full);
- void OnTraceDataCollected(const std::string& data);
-
- // ChildTraceMessageFilter exists:
- bool has_child_;
-
- // Awaiting ack for previously sent SendEndTracing
- bool is_awaiting_end_ack_;
- // Awaiting ack for previously sent SendGetTraceBufferPercentFull
- bool is_awaiting_buffer_percent_full_ack_;
-
- DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_TRACE_MESSAGE_FILTER_H_
« no previous file with comments | « content/browser/trace_controller_impl.cc ('k') | content/browser/trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698