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

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

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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Interface to the invalidator, which is an object that receives 5 // Interface to the invalidator, which is an object that receives
6 // invalidations for registered object IDs. The corresponding 6 // invalidations for registered object IDs. The corresponding
7 // InvalidationHandler is notifier when such an event occurs. 7 // InvalidationHandler is notifier when such an event occurs.
8 8
9 #ifndef SYNC_NOTIFIER_INVALIDATOR_H_ 9 #ifndef COMPONENTS_INVALIDATION_INVALIDATOR_H_
10 #define SYNC_NOTIFIER_INVALIDATOR_H_ 10 #define COMPONENTS_INVALIDATION_INVALIDATOR_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "sync/base/sync_export.h" 15 #include "components/invalidation/invalidation_export.h"
16 #include "sync/internal_api/public/base/invalidation_util.h"
16 #include "sync/internal_api/public/base/invalidator_state.h" 17 #include "sync/internal_api/public/base/invalidator_state.h"
17 #include "sync/internal_api/public/base/model_type.h" 18 #include "sync/internal_api/public/base/model_type.h"
18 #include "sync/notifier/invalidation_util.h"
19 19
20 namespace syncer { 20 namespace syncer {
21 class InvalidationHandler; 21 class InvalidationHandler;
22 22
23 class SYNC_EXPORT Invalidator { 23 class INVALIDATION_EXPORT Invalidator {
24 public: 24 public:
25 Invalidator(); 25 Invalidator();
26 virtual ~Invalidator(); 26 virtual ~Invalidator();
27 27
28 // Clients should follow the pattern below: 28 // Clients should follow the pattern below:
29 // 29 //
30 // When starting the client: 30 // When starting the client:
31 // 31 //
32 // invalidator->RegisterHandler(client_handler); 32 // invalidator->RegisterHandler(client_handler);
33 // 33 //
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // once. 79 // once.
80 virtual void UpdateCredentials( 80 virtual void UpdateCredentials(
81 const std::string& email, const std::string& token) = 0; 81 const std::string& email, const std::string& token) = 0;
82 82
83 // Requests internal detailed status to be posted back to the callback. 83 // Requests internal detailed status to be posted back to the callback.
84 virtual void RequestDetailedStatus( 84 virtual void RequestDetailedStatus(
85 base::Callback<void(const base::DictionaryValue&)> callback) const = 0; 85 base::Callback<void(const base::DictionaryValue&)> callback) const = 0;
86 }; 86 };
87 } // namespace syncer 87 } // namespace syncer
88 88
89 #endif // SYNC_NOTIFIER_INVALIDATOR_H_ 89 #endif // COMPONENTS_INVALIDATION_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « components/invalidation/invalidation_state_tracker.cc ('k') | components/invalidation/invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698