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

Side by Side Diff: jingle/notifier/listener/non_blocking_push_client.cc

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_sync_message_filter.cc ('k') | jingle/notifier/listener/xmpp_push_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "jingle/notifier/listener/non_blocking_push_client.h" 5 #include "jingle/notifier/listener/non_blocking_push_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "jingle/notifier/listener/push_client_observer.h" 11 #include "jingle/notifier/listener/push_client_observer.h"
12 12
13 namespace notifier { 13 namespace notifier {
14 14
15 // All methods are called on the delegate thread unless specified 15 // All methods are called on the delegate thread unless specified
16 // otherwise. 16 // otherwise.
17 class NonBlockingPushClient::Core 17 class NonBlockingPushClient::Core
18 : public base::RefCountedThreadSafe<NonBlockingPushClient::Core>, 18 : public base::RefCountedThreadSafe<NonBlockingPushClient::Core>,
19 public PushClientObserver { 19 public PushClientObserver {
20 public: 20 public:
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 FOR_EACH_OBSERVER(PushClientObserver, observers_, 237 FOR_EACH_OBSERVER(PushClientObserver, observers_,
238 OnIncomingNotification(notification)); 238 OnIncomingNotification(notification));
239 } 239 }
240 240
241 void NonBlockingPushClient::OnPingResponse() { 241 void NonBlockingPushClient::OnPingResponse() {
242 DCHECK(thread_checker_.CalledOnValidThread()); 242 DCHECK(thread_checker_.CalledOnValidThread());
243 FOR_EACH_OBSERVER(PushClientObserver, observers_, OnPingResponse()); 243 FOR_EACH_OBSERVER(PushClientObserver, observers_, OnPingResponse());
244 } 244 }
245 245
246 } // namespace notifier 246 } // namespace notifier
OLDNEW
« no previous file with comments | « ipc/ipc_sync_message_filter.cc ('k') | jingle/notifier/listener/xmpp_push_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698