| 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 #include "chrome/browser/sync/internal_api/sync_manager.h" | 5 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/observer_list_threadsafe.h" | 15 #include "base/observer_list_threadsafe.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/sync/engine/all_status.h" | 18 #include "chrome/browser/sync/engine/all_status.h" |
| 19 #include "chrome/browser/sync/engine/net/server_connection_manager.h" | 19 #include "chrome/browser/sync/engine/net/server_connection_manager.h" |
| 20 #include "chrome/browser/sync/engine/nigori_util.h" | 20 #include "chrome/browser/sync/encryption/nigori_util.h" |
| 21 #include "chrome/browser/sync/engine/syncapi_internal.h" | 21 #include "chrome/browser/sync/engine/syncapi_internal.h" |
| 22 #include "chrome/browser/sync/engine/syncer_types.h" | 22 #include "chrome/browser/sync/engine/syncer_types.h" |
| 23 #include "chrome/browser/sync/engine/sync_scheduler.h" | 23 #include "chrome/browser/sync/engine/sync_scheduler.h" |
| 24 #include "chrome/browser/sync/internal_api/base_node.h" | 24 #include "chrome/browser/sync/internal_api/base_node.h" |
| 25 #include "chrome/browser/sync/internal_api/change_reorder_buffer.h" | 25 #include "chrome/browser/sync/internal_api/change_reorder_buffer.h" |
| 26 #include "chrome/browser/sync/internal_api/configure_reason.h" | 26 #include "chrome/browser/sync/internal_api/configure_reason.h" |
| 27 #include "chrome/browser/sync/internal_api/debug_info_event_listener.h" | 27 #include "chrome/browser/sync/internal_api/debug_info_event_listener.h" |
| 28 #include "chrome/browser/sync/internal_api/read_node.h" | 28 #include "chrome/browser/sync/internal_api/read_node.h" |
| 29 #include "chrome/browser/sync/internal_api/read_transaction.h" | 29 #include "chrome/browser/sync/internal_api/read_transaction.h" |
| 30 #include "chrome/browser/sync/internal_api/syncapi_server_connection_manager.h" | 30 #include "chrome/browser/sync/internal_api/syncapi_server_connection_manager.h" |
| 31 #include "chrome/browser/sync/internal_api/user_share.h" | 31 #include "chrome/browser/sync/internal_api/user_share.h" |
| 32 #include "chrome/browser/sync/internal_api/write_node.h" | 32 #include "chrome/browser/sync/internal_api/write_node.h" |
| 33 #include "chrome/browser/sync/internal_api/write_transaction.h" | 33 #include "chrome/browser/sync/internal_api/write_transaction.h" |
| 34 #include "chrome/browser/sync/js/js_arg_list.h" | 34 #include "chrome/browser/sync/js/js_arg_list.h" |
| 35 #include "chrome/browser/sync/js/js_backend.h" | 35 #include "chrome/browser/sync/js/js_backend.h" |
| 36 #include "chrome/browser/sync/js/js_event_details.h" | 36 #include "chrome/browser/sync/js/js_event_details.h" |
| 37 #include "chrome/browser/sync/js/js_event_handler.h" | 37 #include "chrome/browser/sync/js/js_event_handler.h" |
| 38 #include "chrome/browser/sync/js/js_mutation_event_observer.h" | 38 #include "chrome/browser/sync/js/js_mutation_event_observer.h" |
| 39 #include "chrome/browser/sync/js/js_reply_handler.h" | 39 #include "chrome/browser/sync/js/js_reply_handler.h" |
| 40 #include "chrome/browser/sync/js/js_sync_manager_observer.h" | 40 #include "chrome/browser/sync/js/js_sync_manager_observer.h" |
| 41 #include "chrome/browser/sync/notifier/sync_notifier.h" | 41 #include "chrome/browser/sync/notifier/sync_notifier.h" |
| 42 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" | 42 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" |
| 43 #include "chrome/browser/sync/protocol/proto_value_conversions.h" | 43 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
| 44 #include "chrome/browser/sync/protocol/sync.pb.h" | 44 #include "chrome/browser/sync/protocol/sync.pb.h" |
| 45 #include "chrome/browser/sync/syncable/directory_change_delegate.h" | 45 #include "chrome/browser/sync/syncable/directory_change_delegate.h" |
| 46 #include "chrome/browser/sync/syncable/directory_manager.h" | 46 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 47 #include "chrome/browser/sync/syncable/model_type.h" | 47 #include "chrome/browser/sync/syncable/model_type.h" |
| 48 #include "chrome/browser/sync/syncable/model_type_payload_map.h" | 48 #include "chrome/browser/sync/syncable/model_type_payload_map.h" |
| 49 #include "chrome/browser/sync/syncable/syncable.h" | 49 #include "chrome/browser/sync/syncable/syncable.h" |
| 50 #include "chrome/browser/sync/util/cryptographer.h" | 50 #include "chrome/browser/sync/encryption/cryptographer.h" |
| 51 #include "chrome/common/chrome_switches.h" | 51 #include "chrome/common/chrome_switches.h" |
| 52 #include "net/base/network_change_notifier.h" | 52 #include "net/base/network_change_notifier.h" |
| 53 | 53 |
| 54 using std::string; | 54 using std::string; |
| 55 | 55 |
| 56 using base::TimeDelta; | 56 using base::TimeDelta; |
| 57 using browser_sync::AllStatus; | 57 using browser_sync::AllStatus; |
| 58 using browser_sync::Cryptographer; | 58 using browser_sync::Cryptographer; |
| 59 using browser_sync::JsArgList; | 59 using browser_sync::JsArgList; |
| 60 using browser_sync::JsBackend; | 60 using browser_sync::JsBackend; |
| (...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 lookup->GetDownloadProgress(*i, &marker); | 2109 lookup->GetDownloadProgress(*i, &marker); |
| 2110 | 2110 |
| 2111 if (marker.token().empty()) | 2111 if (marker.token().empty()) |
| 2112 result.insert(*i); | 2112 result.insert(*i); |
| 2113 | 2113 |
| 2114 } | 2114 } |
| 2115 return result; | 2115 return result; |
| 2116 } | 2116 } |
| 2117 | 2117 |
| 2118 } // namespace sync_api | 2118 } // namespace sync_api |
| OLD | NEW |