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

Unified Diff: net/base/trace_net_log_observer.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/base/test_data_stream.cc ('k') | net/base/trace_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/trace_net_log_observer.h
diff --git a/net/base/trace_net_log_observer.h b/net/base/trace_net_log_observer.h
deleted file mode 100644
index 4a8355b602790c079cc84f22f1c84fc85a88752b..0000000000000000000000000000000000000000
--- a/net/base/trace_net_log_observer.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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 NET_BASE_TRACE_NET_LOG_OBSERVER_H_
-#define NET_BASE_TRACE_NET_LOG_OBSERVER_H_
-
-#include "base/macros.h"
-#include "base/trace_event/trace_event_impl.h"
-#include "net/base/net_export.h"
-#include "net/base/net_log.h"
-
-namespace net {
-
-// TraceNetLogObserver watches for TraceLog enable, and sends NetLog
-// events to TraceLog if it is enabled.
-class NET_EXPORT TraceNetLogObserver
- : public NetLog::ThreadSafeObserver,
- public base::trace_event::TraceLog::EnabledStateObserver {
- public:
- TraceNetLogObserver();
- ~TraceNetLogObserver() override;
-
- // net::NetLog::ThreadSafeObserver implementation:
- void OnAddEntry(const NetLog::Entry& entry) override;
-
- // Start to watch for TraceLog enable and disable events.
- // This can't be called if already watching for events.
- // Watches NetLog only when tracing is enabled.
- void WatchForTraceStart(NetLog* net_log);
-
- // Stop watching for TraceLog enable and disable events.
- // If WatchForTraceStart is called, this must be called before
- // TraceNetLogObserver is destroyed.
- void StopWatchForTraceStart();
-
- // base::trace_event::TraceLog::EnabledStateChangedObserver implementation:
- void OnTraceLogEnabled() override;
- void OnTraceLogDisabled() override;
-
- private:
- NetLog* net_log_to_watch_;
-
- DISALLOW_COPY_AND_ASSIGN(TraceNetLogObserver);
-};
-
-} // namespace net
-
-#endif // NET_BASE_TRACE_NET_LOG_OBSERVER_H_
« no previous file with comments | « net/base/test_data_stream.cc ('k') | net/base/trace_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698