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

Side by Side Diff: components/invalidation/public/invalidation.cc

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 #include "components/invalidation/invalidation.h" 5 #include "components/invalidation/public/invalidation.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/rand_util.h" 12 #include "base/rand_util.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "components/invalidation/ack_handler.h" 15 #include "components/invalidation/public/ack_handler.h"
16 #include "components/invalidation/invalidation_util.h" 16 #include "components/invalidation/public/invalidation_util.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 namespace { 20 namespace {
21 const char kObjectIdKey[] = "objectId"; 21 const char kObjectIdKey[] = "objectId";
22 const char kIsUnknownVersionKey[] = "isUnknownVersion"; 22 const char kIsUnknownVersionKey[] = "isUnknownVersion";
23 const char kVersionKey[] = "version"; 23 const char kVersionKey[] = "version";
24 const char kPayloadKey[] = "payload"; 24 const char kPayloadKey[] = "payload";
25 const int64 kInvalidVersion = -1; 25 const int64 kInvalidVersion = -1;
26 } 26 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const std::string& payload, 170 const std::string& payload,
171 AckHandle ack_handle) 171 AckHandle ack_handle)
172 : id_(id), 172 : id_(id),
173 is_unknown_version_(is_unknown_version), 173 is_unknown_version_(is_unknown_version),
174 version_(version), 174 version_(version),
175 payload_(payload), 175 payload_(payload),
176 ack_handle_(ack_handle) { 176 ack_handle_(ack_handle) {
177 } 177 }
178 178
179 } // namespace syncer 179 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/public/invalidation.h ('k') | components/invalidation/public/invalidation_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698