| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/invalidation/invalidation_logger.h" | 5 #include "components/invalidation/invalidation_logger.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/invalidation/invalidation_logger_observer.h" | 9 #include "components/invalidation/invalidation_logger_observer.h" |
| 10 #include "sync/notifier/invalidation_handler.h" | 10 #include "sync/notifier/invalidation_handler.h" |
| 11 | 11 |
| 12 namespace invalidation { | 12 namespace invalidation { |
| 13 class InvalidationLoggerObserver; | 13 class InvalidationLoggerObserver; |
| 14 | 14 |
| 15 InvalidationLogger::InvalidationLogger() | 15 InvalidationLogger::InvalidationLogger() |
| 16 : last_invalidator_state_(syncer::TRANSIENT_INVALIDATION_ERROR), | 16 : last_invalidator_state_(syncer::TRANSIENT_INVALIDATION_ERROR), |
| 17 last_invalidator_state_timestamp_(base::Time::Now()) { } | 17 last_invalidator_state_timestamp_(base::Time::Now()) { } |
| 18 | 18 |
| 19 InvalidationLogger::~InvalidationLogger() {} | 19 InvalidationLogger::~InvalidationLogger() {} |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 void InvalidationLogger::UnregisterObserver( | 113 void InvalidationLogger::UnregisterObserver( |
| 114 InvalidationLoggerObserver* debug_observer) { | 114 InvalidationLoggerObserver* debug_observer) { |
| 115 observer_list_.RemoveObserver(debug_observer); | 115 observer_list_.RemoveObserver(debug_observer); |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool InvalidationLogger::IsObserverRegistered( | 118 bool InvalidationLogger::IsObserverRegistered( |
| 119 InvalidationLoggerObserver* debug_observer) { | 119 InvalidationLoggerObserver* debug_observer) { |
| 120 return observer_list_.HasObserver(debug_observer); | 120 return observer_list_.HasObserver(debug_observer); |
| 121 } | 121 } |
| 122 } // namespace invalidation | 122 } // namespace invalidation |
| OLD | NEW |