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

Unified Diff: remoting/host/server_log_entry.h

Issue 9727005: Log connection type to syslogs and to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « remoting/host/remoting_host_messages.mc ('k') | remoting/host/server_log_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/server_log_entry.h
diff --git a/remoting/host/server_log_entry.h b/remoting/host/server_log_entry.h
index 3353569efe177fbcc855dfdeb82803ad8b25adc7..0552d6a9cd1758f7e8cc901370906da3b121d7d3 100644
--- a/remoting/host/server_log_entry.h
+++ b/remoting/host/server_log_entry.h
@@ -8,6 +8,8 @@
#include <map>
#include <string>
+#include "remoting/protocol/transport.h"
+
namespace buzz {
class XmlElement;
} // namespace buzz
@@ -34,6 +36,9 @@ class ServerLogEntry {
// Adds a field describing the mode of a connection to this log entry.
void AddModeField(Mode mode);
+ // Adds a field describing connection type (direct/stun/relay).
+ void AddConnectionTypeField(protocol::TransportRoute::RouteType type);
+
// Converts this object to an XML stanza.
// The caller takes ownership of the stanza.
buzz::XmlElement* ToStanza() const;
@@ -42,7 +47,7 @@ class ServerLogEntry {
typedef std::map<std::string, std::string> ValuesMap;
ServerLogEntry();
- void Set(const char* key, const char* value);
+ void Set(const std::string& key, const std::string& value);
static const char* GetValueSessionState(bool connected);
static const char* GetValueMode(Mode mode);
« no previous file with comments | « remoting/host/remoting_host_messages.mc ('k') | remoting/host/server_log_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698