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

Side by Side Diff: components/invalidation/invalidation_logger_observer.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_LOGGER_OBSERVER_H_
6 #define COMPONENTS_INVALIDATION_INVALIDATION_LOGGER_OBSERVER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "components/invalidation/invalidation_util.h"
10 #include "components/invalidation/invalidator_state.h"
11 #include "components/invalidation/object_id_invalidation_map.h"
12
13 namespace base {
14 class DictionaryValue;
15 } // namespace base
16
17 namespace syncer {
18 class InvalidationHandler;
19 class ObjectIdInvalidationMap;
20 } // namespace syncer
21
22 namespace invalidation {
23 // This class provides the possibilty to register as an observer for the
24 // InvalidationLogger notifications whenever an InvalidatorService changes
25 // its internal state.
26 // (i.e. A new registration, a new invalidation, a TICL/GCM state change)
27 class InvalidationLoggerObserver {
28 public:
29 virtual void OnRegistrationChange(
30 const std::multiset<std::string>& registered_handlers) = 0;
31 virtual void OnStateChange(const syncer::InvalidatorState& new_state,
32 const base::Time& last_change_timestamp) = 0;
33 virtual void OnUpdateIds(const std::string& handler_name,
34 const syncer::ObjectIdCountMap& details) = 0;
35 virtual void OnDebugMessage(const base::DictionaryValue& details) = 0;
36 virtual void OnInvalidation(
37 const syncer::ObjectIdInvalidationMap& details) = 0;
38 virtual void OnDetailedStatus(const base::DictionaryValue& details) = 0;
39
40 protected:
41 virtual ~InvalidationLoggerObserver() {}
42 };
43
44 } // namespace invalidation
45
46 #endif // COMPONENTS_INVALIDATION_INVALIDATION_LOGGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_logger.cc ('k') | components/invalidation/invalidation_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698