summaryrefslogtreecommitdiffstats
path: root/remoting/host/server_log_entry.h
diff options
context:
space:
mode:
authorsimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-21 00:25:57 +0000
committersimonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-21 00:25:57 +0000
commitbe93be84596e5d610f4feeef53b2cb9cd1195dca (patch)
tree11014abdb230970c41baa668c18dfb2f5332ed96 /remoting/host/server_log_entry.h
parentc351e829e6f49069abf0f50adde2aa657807a812 (diff)
downloadchromium_src-be93be84596e5d610f4feeef53b2cb9cd1195dca.zip
chromium_src-be93be84596e5d610f4feeef53b2cb9cd1195dca.tar.gz
chromium_src-be93be84596e5d610f4feeef53b2cb9cd1195dca.tar.bz2
The chromoting hosts log an "IT2Me or Me2Me" field to the server.
BUG=106208 TEST=none Review URL: http://codereview.chromium.org/9192025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/server_log_entry.h')
-rw-r--r--remoting/host/server_log_entry.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/remoting/host/server_log_entry.h b/remoting/host/server_log_entry.h
index 1b1d452..3353569 100644
--- a/remoting/host/server_log_entry.h
+++ b/remoting/host/server_log_entry.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -16,6 +16,12 @@ namespace remoting {
class ServerLogEntry {
public:
+ // The mode of a connection.
+ enum Mode {
+ IT2ME,
+ ME2ME
+ };
+
// Constructs a log entry for a session state change.
// Currently this is either connection or disconnection.
static ServerLogEntry* MakeSessionStateChange(bool connection);
@@ -25,6 +31,9 @@ class ServerLogEntry {
// Adds fields describing the host to this log entry.
void AddHostFields();
+ // Adds a field describing the mode of a connection to this log entry.
+ void AddModeField(Mode mode);
+
// Converts this object to an XML stanza.
// The caller takes ownership of the stanza.
buzz::XmlElement* ToStanza() const;
@@ -36,6 +45,7 @@ class ServerLogEntry {
void Set(const char* key, const char* value);
static const char* GetValueSessionState(bool connected);
+ static const char* GetValueMode(Mode mode);
ValuesMap values_map_;
};