| 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 "chrome/browser/sync/notifier/invalidation_notifier.h" | 5 #include "chrome/browser/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 "chrome/browser/sync/notifier/sync_notifier_observer.h" | 9 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" |
| 10 #include "chrome/browser/sync/protocol/service_constants.h" | |
| 11 #include "chrome/browser/sync/syncable/model_type_payload_map.h" | |
| 12 #include "jingle/notifier/base/const_communicator.h" | 10 #include "jingle/notifier/base/const_communicator.h" |
| 13 #include "jingle/notifier/base/notifier_options_util.h" | 11 #include "jingle/notifier/base/notifier_options_util.h" |
| 14 #include "jingle/notifier/communicator/connection_options.h" | 12 #include "jingle/notifier/communicator/connection_options.h" |
| 15 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 16 #include "net/url_request/url_request_context.h" | 14 #include "net/url_request/url_request_context.h" |
| 15 #include "sync/protocol/service_constants.h" |
| 16 #include "sync/syncable/model_type_payload_map.h" |
| 17 #include "talk/xmpp/jid.h" | 17 #include "talk/xmpp/jid.h" |
| 18 #include "talk/xmpp/xmppclientsettings.h" | 18 #include "talk/xmpp/xmppclientsettings.h" |
| 19 | 19 |
| 20 namespace sync_notifier { | 20 namespace sync_notifier { |
| 21 | 21 |
| 22 InvalidationNotifier::InvalidationNotifier( | 22 InvalidationNotifier::InvalidationNotifier( |
| 23 const notifier::NotifierOptions& notifier_options, | 23 const notifier::NotifierOptions& notifier_options, |
| 24 const InvalidationVersionMap& initial_max_invalidation_versions, | 24 const InvalidationVersionMap& initial_max_invalidation_versions, |
| 25 const browser_sync::WeakHandle<InvalidationVersionTracker>& | 25 const browser_sync::WeakHandle<InvalidationVersionTracker>& |
| 26 invalidation_version_tracker, | 26 invalidation_version_tracker, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 OnNotificationStateChange(has_session)); | 142 OnNotificationStateChange(has_session)); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void InvalidationNotifier::WriteState(const std::string& state) { | 145 void InvalidationNotifier::WriteState(const std::string& state) { |
| 146 DCHECK(non_thread_safe_.CalledOnValidThread()); | 146 DCHECK(non_thread_safe_.CalledOnValidThread()); |
| 147 DVLOG(1) << "WriteState"; | 147 DVLOG(1) << "WriteState"; |
| 148 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, StoreState(state)); | 148 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, StoreState(state)); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace sync_notifier | 151 } // namespace sync_notifier |
| OLD | NEW |