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

Side by Side Diff: remoting/host/dev_net_log.h

Issue 10069020: Log Gaia response codes to ease diagnostics of networking issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added logging on Gaia-related networking activity. Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/dev_net_log.cc » ('j') | remoting/host/dev_net_log.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/dev_net_log.cc » ('j') | remoting/host/dev_net_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698