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

Side by Side Diff: components/invalidation/public/invalidation.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, 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
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 COMPONENTS_INVALIDATION_INVALIDATION_H_ 5 #ifndef COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_
6 #define COMPONENTS_INVALIDATION_INVALIDATION_H_ 6 #define COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/sequenced_task_runner.h" 13 #include "base/sequenced_task_runner.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "components/invalidation/ack_handle.h" 15 #include "components/invalidation/public/ack_handle.h"
16 #include "components/invalidation/invalidation_export.h" 16 #include "components/invalidation/public/invalidation_export.h"
17 #include "google/cacheinvalidation/include/types.h" 17 #include "google/cacheinvalidation/include/types.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 class DroppedInvalidationTracker; 21 class DroppedInvalidationTracker;
22 class AckHandler; 22 class AckHandler;
23 23
24 // Represents a local invalidation, and is roughly analogous to 24 // Represents a local invalidation, and is roughly analogous to
25 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class 25 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class
26 // supports "local" ack-tracking and simple serialization to pref values. 26 // supports "local" ack-tracking and simple serialization to pref values.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // A locally generated unique ID used to manage local acknowledgements. 117 // A locally generated unique ID used to manage local acknowledgements.
118 AckHandle ack_handle_; 118 AckHandle ack_handle_;
119 119
120 // The acknowledgement tracking handler and its thread. 120 // The acknowledgement tracking handler and its thread.
121 base::WeakPtr<AckHandler> ack_handler_; 121 base::WeakPtr<AckHandler> ack_handler_;
122 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_; 122 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_;
123 }; 123 };
124 124
125 } // namespace syncer 125 } // namespace syncer
126 126
127 #endif // COMPONENTS_INVALIDATION_INVALIDATION_H_ 127 #endif // COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_
OLDNEW
« no previous file with comments | « components/invalidation/public/ack_handler.cc ('k') | components/invalidation/public/invalidation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698