| OLD | NEW |
| 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 "sync/notifier/invalidation_notifier.h" | 5 #include "sync/notifier/invalidation_notifier.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "jingle/notifier/listener/push_client.h" | 10 #include "jingle/notifier/listener/push_client.h" |
| 11 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" |
| 12 #include "sync/internal_api/public/syncable/model_type_payload_map.h" | 12 #include "sync/internal_api/public/base/model_type_payload_map.h" |
| 13 #include "sync/notifier/sync_notifier_observer.h" | 13 #include "sync/notifier/sync_notifier_observer.h" |
| 14 #include "talk/xmpp/jid.h" | 14 #include "talk/xmpp/jid.h" |
| 15 #include "talk/xmpp/xmppclientsettings.h" | 15 #include "talk/xmpp/xmppclientsettings.h" |
| 16 | 16 |
| 17 namespace syncer { | 17 namespace syncer { |
| 18 | 18 |
| 19 InvalidationNotifier::InvalidationNotifier( | 19 InvalidationNotifier::InvalidationNotifier( |
| 20 scoped_ptr<notifier::PushClient> push_client, | 20 scoped_ptr<notifier::PushClient> push_client, |
| 21 const InvalidationVersionMap& initial_max_invalidation_versions, | 21 const InvalidationVersionMap& initial_max_invalidation_versions, |
| 22 const std::string& initial_invalidation_state, | 22 const std::string& initial_invalidation_state, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 | 136 |
| 137 void InvalidationNotifier::OnNotificationsDisabled( | 137 void InvalidationNotifier::OnNotificationsDisabled( |
| 138 NotificationsDisabledReason reason) { | 138 NotificationsDisabledReason reason) { |
| 139 DCHECK(CalledOnValidThread()); | 139 DCHECK(CalledOnValidThread()); |
| 140 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, | 140 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, |
| 141 OnNotificationsDisabled(reason)); | 141 OnNotificationsDisabled(reason)); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace syncer | 144 } // namespace syncer |
| OLD | NEW |