OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_HOST_DEV_NET_LOG_H_ | |
6 #define REMOTING_HOST_DEV_NET_LOG_H_ | |
7 | |
8 #include "base/memory/scoped_handle.h" | |
9 #include "net/base/net_log.h" | |
10 | |
11 namespace remoting { | |
12 | |
13 class DevNetLog : public net::NetLog { | |
Sergey Ulanov
2012/04/13 00:55:33
Add comments to explain what this is for.
Sergey Ulanov
2012/04/13 00:55:33
Can we have better name? E.g. NullNetLog
alexeypa (please no reviews)
2012/04/13 18:28:22
Done.
alexeypa (please no reviews)
2012/04/13 18:28:22
Done.
| |
14 public: | |
15 DevNetLog(); | |
16 ~DevNetLog(); | |
Sergey Ulanov
2012/04/13 00:55:33
virtual
alexeypa (please no reviews)
2012/04/13 18:28:22
Done.
| |
17 | |
18 // NetLog overrides: | |
19 virtual void AddEntry( | |
20 EventType type, | |
21 const Source& source, | |
22 EventPhase phase, | |
23 const scoped_refptr<NetLog::EventParameters>& params) OVERRIDE; | |
24 virtual uint32 NextID() OVERRIDE; | |
25 virtual LogLevel GetLogLevel() const OVERRIDE; | |
26 virtual void AddThreadSafeObserver(ThreadSafeObserver* observer, | |
27 LogLevel log_level); | |
Sergey Ulanov
2012/04/13 00:55:33
mark this and two methods below as OVERRIDE.
alexeypa (please no reviews)
2012/04/13 18:28:22
Done.
| |
28 virtual void SetObserverLogLevel(ThreadSafeObserver* observer, | |
29 LogLevel log_level); | |
30 virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer); | |
31 | |
32 private: | |
33 uint32 id_; | |
34 }; | |
35 | |
36 } // namespace remoting | |
37 | |
38 #endif // REMOTING_HOST_DEV_NET_LOG_H_ | |
OLD | NEW |