| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/sync/internal_api/sync_manager.h" | 5 #include "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/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/string_number_conversions.h" | 18 #include "base/string_number_conversions.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/sync/internal_api/all_status.h" | |
| 21 #include "chrome/browser/sync/internal_api/base_node.h" | |
| 22 #include "chrome/browser/sync/internal_api/change_reorder_buffer.h" | |
| 23 #include "chrome/browser/sync/internal_api/configure_reason.h" | |
| 24 #include "chrome/browser/sync/internal_api/debug_info_event_listener.h" | |
| 25 #include "chrome/browser/sync/internal_api/js_mutation_event_observer.h" | |
| 26 #include "chrome/browser/sync/internal_api/js_sync_manager_observer.h" | |
| 27 #include "chrome/browser/sync/internal_api/read_node.h" | |
| 28 #include "chrome/browser/sync/internal_api/read_transaction.h" | |
| 29 #include "chrome/browser/sync/internal_api/syncapi_internal.h" | |
| 30 #include "chrome/browser/sync/internal_api/syncapi_server_connection_manager.h" | |
| 31 #include "chrome/browser/sync/internal_api/user_share.h" | |
| 32 #include "chrome/browser/sync/internal_api/write_node.h" | |
| 33 #include "chrome/browser/sync/internal_api/write_transaction.h" | |
| 34 #include "net/base/network_change_notifier.h" | 20 #include "net/base/network_change_notifier.h" |
| 35 #include "sync/engine/net/server_connection_manager.h" | 21 #include "sync/engine/net/server_connection_manager.h" |
| 36 #include "sync/engine/nigori_util.h" | 22 #include "sync/engine/nigori_util.h" |
| 37 #include "sync/engine/polling_constants.h" | 23 #include "sync/engine/polling_constants.h" |
| 38 #include "sync/engine/sync_scheduler.h" | 24 #include "sync/engine/sync_scheduler.h" |
| 39 #include "sync/engine/syncer_types.h" | 25 #include "sync/engine/syncer_types.h" |
| 26 #include "sync/internal_api/all_status.h" |
| 27 #include "sync/internal_api/base_node.h" |
| 28 #include "sync/internal_api/change_reorder_buffer.h" |
| 29 #include "sync/internal_api/configure_reason.h" |
| 30 #include "sync/internal_api/debug_info_event_listener.h" |
| 31 #include "sync/internal_api/js_mutation_event_observer.h" |
| 32 #include "sync/internal_api/js_sync_manager_observer.h" |
| 33 #include "sync/internal_api/read_node.h" |
| 34 #include "sync/internal_api/read_transaction.h" |
| 35 #include "sync/internal_api/syncapi_internal.h" |
| 36 #include "sync/internal_api/syncapi_server_connection_manager.h" |
| 37 #include "sync/internal_api/user_share.h" |
| 38 #include "sync/internal_api/write_node.h" |
| 39 #include "sync/internal_api/write_transaction.h" |
| 40 #include "sync/js/js_arg_list.h" | 40 #include "sync/js/js_arg_list.h" |
| 41 #include "sync/js/js_backend.h" | 41 #include "sync/js/js_backend.h" |
| 42 #include "sync/js/js_event_details.h" | 42 #include "sync/js/js_event_details.h" |
| 43 #include "sync/js/js_event_handler.h" | 43 #include "sync/js/js_event_handler.h" |
| 44 #include "sync/js/js_reply_handler.h" | 44 #include "sync/js/js_reply_handler.h" |
| 45 #include "sync/notifier/sync_notifier.h" | 45 #include "sync/notifier/sync_notifier.h" |
| 46 #include "sync/notifier/sync_notifier_observer.h" | 46 #include "sync/notifier/sync_notifier_observer.h" |
| 47 #include "sync/protocol/encryption.pb.h" | 47 #include "sync/protocol/encryption.pb.h" |
| 48 #include "sync/protocol/proto_value_conversions.h" | 48 #include "sync/protocol/proto_value_conversions.h" |
| 49 #include "sync/protocol/sync.pb.h" | 49 #include "sync/protocol/sync.pb.h" |
| (...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2566 share->directory->GetDownloadProgress(i.Get(), &marker); | 2566 share->directory->GetDownloadProgress(i.Get(), &marker); |
| 2567 | 2567 |
| 2568 if (marker.token().empty()) | 2568 if (marker.token().empty()) |
| 2569 result.Put(i.Get()); | 2569 result.Put(i.Get()); |
| 2570 | 2570 |
| 2571 } | 2571 } |
| 2572 return result; | 2572 return result; |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 } // namespace sync_api | 2575 } // namespace sync_api |
| OLD | NEW |