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

Side by Side Diff: net/base/trace_net_log_observer.h

Issue 468083004: Use NESTABLE_ASYNC APIs to get NetLog data into Tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a missing header Created 6 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_BASE_TRACE_NET_LOG_OBSERVER_H_
6 #define NET_BASE_TRACE_NET_LOG_OBSERVER_H_
7
8 #include "base/debug/trace_event_impl.h"
9 #include "base/macros.h"
10 #include "net/base/net_export.h"
11 #include "net/base/net_log.h"
12
13 namespace net {
14
15 class NET_EXPORT TraceNetLogObserver
16 : public NetLog::ThreadSafeObserver,
17 public base::debug::TraceLog::EnabledStateObserver {
18 public:
19 TraceNetLogObserver();
20 virtual ~TraceNetLogObserver();
21
22 // net::NetLog::ThreadSafeObserver implementation:
23 virtual void OnAddEntry(const NetLog::Entry& entry) OVERRIDE;
24
25 void WatchForTraceStart(NetLog* net_log);
26
27 void StopWatchForTraceStart();
28
29 // base::debug::TraceLog::EnabledStateChangedObserver implementation:
30 virtual void OnTraceLogEnabled() OVERRIDE;
31 virtual void OnTraceLogDisabled() OVERRIDE;
32
33 private:
34 // The LogLevel to log at.
35 NetLog::LogLevel log_level_;
mmenke 2014/08/22 18:28:14 No longer used.
xunjieli 2014/08/22 19:04:39 Oops. Sorry. Should be gone now. Thanks! On 2014/0
36
37 NetLog* net_log_to_watch_;
38
39 DISALLOW_COPY_AND_ASSIGN(TraceNetLogObserver);
40 };
41
42 } // namespace net
43
44 #endif // NET_BASE_TRACE_NET_LOG_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698