summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base/notification_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'jingle/notifier/base/notification_method.h')
-rw-r--r--jingle/notifier/base/notification_method.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/jingle/notifier/base/notification_method.h b/jingle/notifier/base/notification_method.h
deleted file mode 100644
index aedc11d..0000000
--- a/jingle/notifier/base/notification_method.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2010 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 JINGLE_NOTIFIER_BASE_NOTIFICATION_METHOD_H_
-#define JINGLE_NOTIFIER_BASE_NOTIFICATION_METHOD_H_
-#pragma once
-
-#include <string>
-
-namespace notifier {
-
-// This is the matrix for the interaction between clients with
-// different notification methods (except for NOTIFICATION_SERVER):
-//
-// Listen
-// L T N
-// +-------+
-// L | E E E |
-// Send T | Y Y Y |
-// N | E Y Y |
-// +-------+
-//
-// 'Y' means a client listening with the column notification method
-// will receive notifications from a client sending with the row
-// notification method. 'E' means means that the notification will be
-// an empty one, which may be dropped by the server in the future.
-//
-// As for NOTIFICATION_SERVER, server-issued notifications will also
-// simulate a peer-issued notification, so that any client with
-// NOTIFICATION_TRANSITIONAL or NOTIFICATION_NEW will be able to
-// receive those, too. This support will be removed once everyone is
-// on NOTIFICATION_SERVER.
-
-enum NotificationMethod {
- // Old, broken notification method. Works only if notification
- // servers don't drop empty notifications.
- NOTIFICATION_LEGACY,
- // Compatible with new notifications. Also compatible with legacy
- // notifications if the notification servers don't drop empty
- // notifications.
- NOTIFICATION_TRANSITIONAL,
- // New notification method. Compatible only with transitional
- // notifications.
- //
- // NOTE: "New" is kind of a misnomer, as it refers only to
- // peer-issued notifications; the plan is to migrate everyone to
- // using NOTIFICATION_SERVER.
- NOTIFICATION_NEW,
-
- // Server-issued notifications. Compatible only with transitional
- // notifications.
- NOTIFICATION_SERVER,
-};
-
-extern const NotificationMethod kDefaultNotificationMethod;
-
-std::string NotificationMethodToString(
- NotificationMethod notification_method);
-
-// If the given string is not one of "legacy", "transitional", "new",
-// or "server", returns kDefaultNotificationMethod.
-NotificationMethod StringToNotificationMethod(const std::string& str);
-
-} // namespace notifier
-
-#endif // JINGLE_NOTIFIER_BASE_NOTIFICATION_METHOD_H_
-