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

Unified Diff: chrome/common/net/notifier/listener/mediator_thread_impl.h

Issue 2827014: Implemented initial version of server-issued notification client. (Closed)
Patch Set: Added DEPS Created 10 years, 6 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 | « chrome/chrome.gyp ('k') | chrome/common/net/notifier/listener/mediator_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/notifier/listener/mediator_thread_impl.h
diff --git a/chrome/common/net/notifier/listener/mediator_thread_impl.h b/chrome/common/net/notifier/listener/mediator_thread_impl.h
index 30683e81e905cf5c6dffd92e8e68f52f20738e41..fb14d5b60bf590d3bddaba7fb5ac912b30caf79b 100644
--- a/chrome/common/net/notifier/listener/mediator_thread_impl.h
+++ b/chrome/common/net/notifier/listener/mediator_thread_impl.h
@@ -83,6 +83,17 @@ class MediatorThreadImpl
const std::vector<std::string>& subscribed_services_list);
virtual void SendNotification(const OutgoingNotificationData& data);
+ protected:
+ // Should only be called after Start().
+ MessageLoop* worker_message_loop();
+
+ // Should only be called after OnConnectionStateChange() is called
+ // on the delegate with true.
+ buzz::XmppClient* xmpp_client();
+
+ Delegate* delegate_;
+ MessageLoop* parent_message_loop_;
+
private:
void StartLibjingleThread();
void PumpLibjingleLoop();
@@ -117,11 +128,6 @@ class MediatorThreadImpl
void OnSubscriptionStateChangeOnParentThread(
bool success);
- MessageLoop* worker_message_loop();
- buzz::XmppClient* xmpp_client();
-
- Delegate* delegate_;
- MessageLoop* parent_message_loop_;
chrome_common_net::NetworkChangeNotifierThread*
network_change_notifier_thread_;
base::Thread worker_thread_;
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/net/notifier/listener/mediator_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698