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

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
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..3c56d32eb9f07f680e40964e7a0705104f60cd8b 100644
--- a/remoting/host/server_log_entry.h
+++ b/remoting/host/server_log_entry.h
@@ -34,6 +34,9 @@ class ServerLogEntry {
// Adds a field describing the mode of a connection to this log entry.
void AddModeField(Mode mode);
+ // Adds a filed describing connection type (direct/stun/relay).
simonmorris 2012/03/19 22:17:05 "filed" -> "field".
Sergey Ulanov 2012/03/19 23:21:03 Done.
+ void AddConnectionTypeField(const std::string& type);
+
// Converts this object to an XML stanza.
// The caller takes ownership of the stanza.
buzz::XmlElement* ToStanza() const;
@@ -42,7 +45,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);

Powered by Google App Engine
This is Rietveld 408576698