| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "chrome/browser/sync/syncable/blob.h" | 12 #include "chrome/browser/sync/syncable/blob.h" |
| 13 #include "chrome/browser/sync/syncable/model_type.h" | 13 #include "chrome/browser/sync/syncable/model_type.h" |
| 14 | 14 |
| 15 namespace syncable { | 15 namespace syncable { |
| 16 class Directory; | 16 class Directory; |
| 17 class Entry; | 17 class Entry; |
| 18 class ScopedDirLookup; | |
| 19 class SyncName; | |
| 20 } // namespace syncable | 18 } // namespace syncable |
| 21 | 19 |
| 22 namespace sync_pb { | 20 namespace sync_pb { |
| 23 class ClientToServerResponse; | 21 class ClientToServerResponse; |
| 24 class EntitySpecifics; | 22 class EntitySpecifics; |
| 25 } // namespace sync_pb | 23 } // namespace sync_pb |
| 26 | 24 |
| 27 namespace browser_sync { | 25 namespace browser_sync { |
| 28 | 26 |
| 29 namespace sessions { | 27 namespace sessions { |
| 30 class SyncSession; | 28 class SyncSession; |
| 31 } | 29 } |
| 32 | 30 |
| 33 class AuthWatcher; | |
| 34 class ClientToServerMessage; | 31 class ClientToServerMessage; |
| 35 class ServerConnectionManager; | 32 class ServerConnectionManager; |
| 36 class SyncEntity; | 33 class SyncEntity; |
| 37 class CommitResponse_EntryResponse; | 34 class CommitResponse_EntryResponse; |
| 38 | 35 |
| 39 class SyncerProtoUtil { | 36 class SyncerProtoUtil { |
| 40 public: | 37 public: |
| 41 // Posts the given message and fills the buffer with the returned value. | 38 // Posts the given message and fills the buffer with the returned value. |
| 42 // Returns true on success. Also handles store birthday verification: | 39 // Returns true on success. Also handles store birthday verification: |
| 43 // session->status()->syncer_stuck_ is set true if the birthday is | 40 // session->status()->syncer_stuck_ is set true if the birthday is |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); | 119 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); |
| 123 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); | 120 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); |
| 124 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); | 121 FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); |
| 125 | 122 |
| 126 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); | 123 DISALLOW_COPY_AND_ASSIGN(SyncerProtoUtil); |
| 127 }; | 124 }; |
| 128 | 125 |
| 129 } // namespace browser_sync | 126 } // namespace browser_sync |
| 130 | 127 |
| 131 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ | 128 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_PROTO_UTIL_H_ |
| OLD | NEW |