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

Unified Diff: jingle/notifier/listener/talk_mediator.h

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test Created 8 years, 7 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 | « jingle/notifier/listener/push_client_unittest.cc ('k') | jingle/notifier/listener/talk_mediator_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/talk_mediator.h
diff --git a/jingle/notifier/listener/talk_mediator.h b/jingle/notifier/listener/talk_mediator.h
deleted file mode 100644
index 7a6fa79f56431b84d549b8760ce2e55efaa05a47..0000000000000000000000000000000000000000
--- a/jingle/notifier/listener/talk_mediator.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2011 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.
-//
-// Interface to the code which handles talk logic. Used to initialize SSL
-// before the underlying talk login occurs.
-//
-// Example usage:
-//
-// TalkMediator mediator();
-// mediator.SetAuthToken("email", "token", "service_id");
-// mediator.Login();
-// ...
-// mediator.Logout();
-
-#ifndef JINGLE_NOTIFIER_LISTENER_TALK_MEDIATOR_H_
-#define JINGLE_NOTIFIER_LISTENER_TALK_MEDIATOR_H_
-
-#include <string>
-
-#include "jingle/notifier/listener/notification_defines.h"
-
-namespace notifier {
-
-class TalkMediator {
- public:
- TalkMediator() {}
- virtual ~TalkMediator() {}
-
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- virtual void OnNotificationStateChange(bool notifications_enabled) = 0;
-
- virtual void OnIncomingNotification(const Notification& notification) = 0;
-
- virtual void OnOutgoingNotification() = 0;
- };
-
- // |delegate| may be NULL.
- virtual void SetDelegate(Delegate* delegate) = 0;
-
- // The following methods are for authorizaiton of the xmpp client.
- virtual void SetAuthToken(const std::string& email,
- const std::string& token,
- const std::string& token_service) = 0;
- virtual bool Login() = 0;
- virtual bool Logout() = 0;
-
- // Method for the owner of this object to notify peers that an update has
- // occurred.
- virtual void SendNotification(const Notification& data) = 0;
-
- // Add a subscription to subscribe to.
- virtual void AddSubscription(const Subscription& subscription) = 0;
-};
-
-} // namespace notifier
-
-#endif // JINGLE_NOTIFIER_LISTENER_TALK_MEDIATOR_H_
« no previous file with comments | « jingle/notifier/listener/push_client_unittest.cc ('k') | jingle/notifier/listener/talk_mediator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698