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

Side by Side Diff: components/sync/base/invalidation_interface.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_INTERFACE_H_ 5 #ifndef COMPONENTS_SYNC_BASE_INVALIDATION_INTERFACE_H_
6 #define SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_INTERFACE_H_ 6 #define COMPONENTS_SYNC_BASE_INVALIDATION_INTERFACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "sync/base/sync_export.h" 12 #include "components/sync/base/sync_export.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 // An interface that wraps sync's interactions with the component that provides 16 // An interface that wraps sync's interactions with the component that provides
17 // it with invalidations. 17 // it with invalidations.
18 class SYNC_EXPORT InvalidationInterface { 18 class SYNC_EXPORT InvalidationInterface {
19 public: 19 public:
20 // Orders invalidations based on version number and IsUnknownVersion(). 20 // Orders invalidations based on version number and IsUnknownVersion().
21 static bool LessThanByVersion(const InvalidationInterface& a, 21 static bool LessThanByVersion(const InvalidationInterface& a,
22 const InvalidationInterface& b); 22 const InvalidationInterface& b);
(...skipping 23 matching lines...) Expand all
46 // This function should be called if a lack of buffer space required that we 46 // This function should be called if a lack of buffer space required that we
47 // drop this invalidation. 47 // drop this invalidation.
48 // 48 //
49 // To indicate recovery from a drop event, the receiver of this invalidation 49 // To indicate recovery from a drop event, the receiver of this invalidation
50 // will call Acknowledge() on the most recently dropped invalidation. 50 // will call Acknowledge() on the most recently dropped invalidation.
51 virtual void Drop() = 0; 51 virtual void Drop() = 0;
52 }; 52 };
53 53
54 } // namespace syncer 54 } // namespace syncer
55 55
56 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_INVALIDATION_INTERFACE_H_ 56 #endif // COMPONENTS_SYNC_BASE_INVALIDATION_INTERFACE_H_
OLDNEW
« no previous file with comments | « components/sync/base/immutable_unittest.cc ('k') | components/sync/base/invalidation_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698