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

Side by Side Diff: components/invalidation/invalidation_logger.cc

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 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
OLDNEW
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_logger_observer.h" 10 #include "components/invalidation/invalidation_logger_observer.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() {}
20 20
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_logger.h ('k') | components/invalidation/invalidation_logger_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698