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

Side by Side Diff: components/sync/engine_impl/syncer_proto_util.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/base/syncer_error.h" 14 #include "components/sync/base/syncer_error.h"
15 #include "components/sync/engine_impl/cycle/sync_cycle.h" 15 #include "components/sync/engine_impl/cycle/sync_cycle.h"
16 16
17 namespace sync_pb { 17 namespace sync_pb {
18 class ClientToServerMessage; 18 class ClientToServerMessage;
19 class ClientToServerResponse; 19 class ClientToServerResponse;
20 class ClientToServerResponse_Error; 20 class ClientToServerResponse_Error;
21 class CommitResponse_EntryResponse; 21 class CommitResponse_EntryResponse;
22 class EntitySpecifics; 22 class EntitySpecifics;
23 class SyncEntity; 23 class SyncEntity;
24 } 24 }
25 25
26 namespace syncer { 26 namespace syncer {
27 27
28 class ServerConnectionManager; 28 class ServerConnectionManager;
29 class SyncCycleContext;
30 struct SyncProtocolError; 29 struct SyncProtocolError;
31 30
32 namespace syncable { 31 namespace syncable {
33 class Directory; 32 class Directory;
34 class Entry;
35 } 33 }
36 34
37 // Returns the types to migrate from the data in |response|. 35 // Returns the types to migrate from the data in |response|.
38 ModelTypeSet GetTypesToMigrate(const sync_pb::ClientToServerResponse& response); 36 ModelTypeSet GetTypesToMigrate(const sync_pb::ClientToServerResponse& response);
39 37
40 // Builds a SyncProtocolError from the data in |error|. 38 // Builds a SyncProtocolError from the data in |error|.
41 SyncProtocolError ConvertErrorPBToSyncProtocolError( 39 SyncProtocolError ConvertErrorPBToSyncProtocolError(
42 const sync_pb::ClientToServerResponse_Error& error); 40 const sync_pb::ClientToServerResponse_Error& error);
43 41
44 class SyncerProtoUtil { 42 class SyncerProtoUtil {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); 138 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders);
141 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); 139 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes);
142 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); 140 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes);
143 141
144 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); 142 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil);
145 }; 143 };
146 144
147 } // namespace syncer 145 } // namespace syncer
148 146
149 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_ 147 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_PROTO_UTIL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_scheduler.h ('k') | components/sync/engine_impl/update_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698