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

Side by Side Diff: chrome/browser/sync/notifier/server_notifier_thread.h

Issue 2885005: Move chrome/common/net/notifier to jingle/notifier so that it can be used by remoting/remoting.gyp. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: rebased Created 10 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This class is the (hackish) way to use the XMPP parts of 5 // This class is the (hackish) way to use the XMPP parts of
6 // MediatorThread for server-issued notifications. 6 // MediatorThread for server-issued notifications.
7 // 7 //
8 // TODO(akalin): Decomp MediatorThread into an XMPP service part and a 8 // TODO(akalin): Decomp MediatorThread into an XMPP service part and a
9 // notifications-specific part and use the XMPP service part for 9 // notifications-specific part and use the XMPP service part for
10 // server-issued notifications. 10 // server-issued notifications.
11 11
12 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_ 12 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_
13 #define CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_ 13 #define CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/scoped_ptr.h" 18 #include "base/scoped_ptr.h"
19 #include "chrome/browser/sync/notifier/chrome_invalidation_client.h" 19 #include "chrome/browser/sync/notifier/chrome_invalidation_client.h"
20 #include "chrome/browser/sync/syncable/model_type.h" 20 #include "chrome/browser/sync/syncable/model_type.h"
21 #include "chrome/common/net/notifier/listener/mediator_thread_impl.h" 21 #include "jingle/notifier/listener/mediator_thread_impl.h"
22 22
23 namespace sync_notifier { 23 namespace sync_notifier {
24 24
25 class ServerNotifierThread 25 class ServerNotifierThread
26 : public notifier::MediatorThreadImpl, 26 : public notifier::MediatorThreadImpl,
27 public ChromeInvalidationClient::Listener { 27 public ChromeInvalidationClient::Listener {
28 public: 28 public:
29 ServerNotifierThread(); 29 ServerNotifierThread();
30 30
31 virtual ~ServerNotifierThread(); 31 virtual ~ServerNotifierThread();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void StopInvalidationListener(); 69 void StopInvalidationListener();
70 70
71 scoped_ptr<ChromeInvalidationClient> chrome_invalidation_client_; 71 scoped_ptr<ChromeInvalidationClient> chrome_invalidation_client_;
72 }; 72 };
73 73
74 } // namespace sync_notifier 74 } // namespace sync_notifier
75 75
76 DISABLE_RUNNABLE_METHOD_REFCOUNT(sync_notifier::ServerNotifierThread); 76 DISABLE_RUNNABLE_METHOD_REFCOUNT(sync_notifier::ServerNotifierThread);
77 77
78 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_ 78 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SERVER_NOTIFIER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698