| 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 "components/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 "components/invalidation/invalidation_handler.h" | 9 #include "components/invalidation/invalidation_handler.h" |
| 10 #include "components/invalidation/invalidation_logger_observer.h" | 10 #include "components/invalidation/invalidation_logger_observer.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 InvalidationLoggerObserver* debug_observer) { | 109 InvalidationLoggerObserver* debug_observer) { |
| 110 observer_list_.AddObserver(debug_observer); | 110 observer_list_.AddObserver(debug_observer); |
| 111 } | 111 } |
| 112 | 112 |
| 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 const InvalidationLoggerObserver* debug_observer) const { |
| 120 return observer_list_.HasObserver(debug_observer); | 120 return observer_list_.HasObserver(debug_observer); |
| 121 } | 121 } |
| 122 } // namespace invalidation | 122 } // namespace invalidation |
| OLD | NEW |