| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/sync/engine_impl/loopback_server/loopback_server.h" | 5 #include "components/sync/engine_impl/loopback_server/loopback_server.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <algorithm> | 7 #include <algorithm> |
| 10 #include <limits> | 8 #include <limits> |
| 11 #include <memory> | |
| 12 #include <set> | 9 #include <set> |
| 13 #include <string> | |
| 14 #include <utility> | 10 #include <utility> |
| 15 #include <vector> | |
| 16 | 11 |
| 17 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 18 #include "base/guid.h" | 13 #include "base/guid.h" |
| 19 #include "base/logging.h" | 14 #include "base/logging.h" |
| 20 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
| 21 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 22 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 23 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 24 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 25 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
| 26 #include "components/sync/base/model_type.h" | |
| 27 #include "components/sync/engine_impl/loopback_server/persistent_bookmark_entity
.h" | 21 #include "components/sync/engine_impl/loopback_server/persistent_bookmark_entity
.h" |
| 28 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit
y.h" | 22 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit
y.h" |
| 29 #include "components/sync/engine_impl/loopback_server/persistent_tombstone_entit
y.h" | 23 #include "components/sync/engine_impl/loopback_server/persistent_tombstone_entit
y.h" |
| 30 #include "components/sync/engine_impl/loopback_server/persistent_unique_client_e
ntity.h" | 24 #include "components/sync/engine_impl/loopback_server/persistent_unique_client_e
ntity.h" |
| 31 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
| 32 #include "net/http/http_status_code.h" | 26 #include "net/http/http_status_code.h" |
| 33 | 27 |
| 34 using std::string; | 28 using std::string; |
| 35 using std::vector; | 29 using std::vector; |
| 36 | 30 |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // write. | 545 // write. |
| 552 LOG(ERROR) << "Loopback sync can not read the persistent state file."; | 546 LOG(ERROR) << "Loopback sync can not read the persistent state file."; |
| 553 return false; | 547 return false; |
| 554 } | 548 } |
| 555 } | 549 } |
| 556 LOG(WARNING) << "Loopback sync persistent state file does not exist."; | 550 LOG(WARNING) << "Loopback sync persistent state file does not exist."; |
| 557 return false; | 551 return false; |
| 558 } | 552 } |
| 559 | 553 |
| 560 } // namespace syncer | 554 } // namespace syncer |
| OLD | NEW |