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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/dev_net_log.cc » ('j') | remoting/host/dev_net_log.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/dev_net_log.h
diff --git a/remoting/host/dev_net_log.h b/remoting/host/dev_net_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..c35afc0021e7b15099fde3ca0b28aeb988eb2f73
--- /dev/null
+++ b/remoting/host/dev_net_log.h
@@ -0,0 +1,38 @@
+// 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 REMOTING_HOST_DEV_NET_LOG_H_
+#define REMOTING_HOST_DEV_NET_LOG_H_
+
+#include "base/memory/scoped_handle.h"
+#include "net/base/net_log.h"
+
+namespace remoting {
+
+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.
+ public:
+ DevNetLog();
+ ~DevNetLog();
Sergey Ulanov 2012/04/13 00:55:33 virtual
alexeypa (please no reviews) 2012/04/13 18:28:22 Done.
+
+ // NetLog overrides:
+ virtual void AddEntry(
+ EventType type,
+ const Source& source,
+ EventPhase phase,
+ const scoped_refptr<NetLog::EventParameters>& params) OVERRIDE;
+ virtual uint32 NextID() OVERRIDE;
+ virtual LogLevel GetLogLevel() const OVERRIDE;
+ virtual void AddThreadSafeObserver(ThreadSafeObserver* observer,
+ 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.
+ virtual void SetObserverLogLevel(ThreadSafeObserver* observer,
+ LogLevel log_level);
+ virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer);
+
+ private:
+ uint32 id_;
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DEV_NET_LOG_H_
« 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