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

Side by Side Diff: sync/notifier/invalidator.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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
« no previous file with comments | « sync/notifier/invalidation_util.h ('k') | sync/notifier/invalidator_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 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 SYNC_NOTIFIER_INVALIDATOR_H_
10 #define SYNC_NOTIFIER_INVALIDATOR_H_ 10 #define SYNC_NOTIFIER_INVALIDATOR_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "sync/base/sync_export.h"
14 #include "sync/internal_api/public/base/model_type.h" 15 #include "sync/internal_api/public/base/model_type.h"
15 #include "sync/notifier/invalidation_util.h" 16 #include "sync/notifier/invalidation_util.h"
16 #include "sync/notifier/invalidator_state.h" 17 #include "sync/notifier/invalidator_state.h"
17 #include "sync/notifier/object_id_invalidation_map.h" 18 #include "sync/notifier/object_id_invalidation_map.h"
18 19
19 namespace syncer { 20 namespace syncer {
20 class InvalidationHandler; 21 class InvalidationHandler;
21 22
22 class Invalidator { 23 class SYNC_EXPORT Invalidator {
23 public: 24 public:
24 Invalidator() {} 25 Invalidator() {}
25 virtual ~Invalidator() {} 26 virtual ~Invalidator() {}
26 27
27 // Clients should follow the pattern below: 28 // Clients should follow the pattern below:
28 // 29 //
29 // When starting the client: 30 // When starting the client:
30 // 31 //
31 // invalidator->RegisterHandler(client_handler); 32 // invalidator->RegisterHandler(client_handler);
32 // 33 //
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // This is here only to support the old p2p notification implementation, 93 // This is here only to support the old p2p notification implementation,
93 // which is still used by sync integration tests. 94 // which is still used by sync integration tests.
94 // TODO(akalin): Remove this once we move the integration tests off p2p 95 // TODO(akalin): Remove this once we move the integration tests off p2p
95 // notifications. 96 // notifications.
96 virtual void SendInvalidation( 97 virtual void SendInvalidation(
97 const ObjectIdInvalidationMap& invalidation_map) = 0; 98 const ObjectIdInvalidationMap& invalidation_map) = 0;
98 }; 99 };
99 } // namespace syncer 100 } // namespace syncer
100 101
101 #endif // SYNC_NOTIFIER_INVALIDATOR_H_ 102 #endif // SYNC_NOTIFIER_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_util.h ('k') | sync/notifier/invalidator_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698