| 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 <cstddef> | 5 #include <cstddef> |
| 6 #include <cstdio> | 6 #include <cstdio> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.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/debug/stack_trace.h" | 12 #include "base/debug/stack_trace.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
| 20 #include "base/rand_util.h" | 20 #include "base/rand_util.h" |
| 21 #include "base/task_runner.h" | 21 #include "base/task_runner.h" |
| 22 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
| 23 #include "components/invalidation/impl/non_blocking_invalidator.h" | 23 #include "components/invalidation/impl/non_blocking_invalidator.h" |
| 24 #include "components/invalidation/public/object_id_invalidation_map.h" | 24 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 25 #include "components/sync_driver/invalidation_helper.h" |
| 25 #include "jingle/notifier/base/notification_method.h" | 26 #include "jingle/notifier/base/notification_method.h" |
| 26 #include "jingle/notifier/base/notifier_options.h" | 27 #include "jingle/notifier/base/notifier_options.h" |
| 27 #include "net/base/host_port_pair.h" | 28 #include "net/base/host_port_pair.h" |
| 28 #include "net/base/network_change_notifier.h" | 29 #include "net/base/network_change_notifier.h" |
| 29 #include "net/dns/host_resolver.h" | 30 #include "net/dns/host_resolver.h" |
| 30 #include "net/http/transport_security_state.h" | 31 #include "net/http/transport_security_state.h" |
| 31 #include "net/url_request/url_request_test_util.h" | 32 #include "net/url_request/url_request_test_util.h" |
| 32 #include "sync/internal_api/public/base/cancelation_signal.h" | 33 #include "sync/internal_api/public/base/cancelation_signal.h" |
| 33 #include "sync/internal_api/public/base/model_type.h" | 34 #include "sync/internal_api/public/base/model_type.h" |
| 34 #include "sync/internal_api/public/base_node.h" | 35 #include "sync/internal_api/public/base_node.h" |
| 35 #include "sync/internal_api/public/engine/passive_model_worker.h" | 36 #include "sync/internal_api/public/engine/passive_model_worker.h" |
| 36 #include "sync/internal_api/public/http_bridge.h" | 37 #include "sync/internal_api/public/http_bridge.h" |
| 37 #include "sync/internal_api/public/http_post_provider_factory.h" | 38 #include "sync/internal_api/public/http_post_provider_factory.h" |
| 38 #include "sync/internal_api/public/internal_components_factory_impl.h" | 39 #include "sync/internal_api/public/internal_components_factory_impl.h" |
| 39 #include "sync/internal_api/public/read_node.h" | 40 #include "sync/internal_api/public/read_node.h" |
| 40 #include "sync/internal_api/public/sync_manager.h" | 41 #include "sync/internal_api/public/sync_manager.h" |
| 41 #include "sync/internal_api/public/sync_manager_factory.h" | 42 #include "sync/internal_api/public/sync_manager_factory.h" |
| 42 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" | 43 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" |
| 43 #include "sync/internal_api/public/util/weak_handle.h" | 44 #include "sync/internal_api/public/util/weak_handle.h" |
| 44 #include "sync/js/js_event_details.h" | 45 #include "sync/js/js_event_details.h" |
| 45 #include "sync/js/js_event_handler.h" | 46 #include "sync/js/js_event_handler.h" |
| 46 #include "sync/test/fake_encryptor.h" | 47 #include "sync/test/fake_encryptor.h" |
| 47 #include "sync/tools/invalidation_helper.h" | |
| 48 #include "sync/tools/null_invalidation_state_tracker.h" | 48 #include "sync/tools/null_invalidation_state_tracker.h" |
| 49 #include "url/gurl.h" | 49 #include "url/gurl.h" |
| 50 | 50 |
| 51 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
| 52 #include "base/mac/scoped_nsautorelease_pool.h" | 52 #include "base/mac/scoped_nsautorelease_pool.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 // This is a simple utility that initializes a sync client and | 55 // This is a simple utility that initializes a sync client and |
| 56 // prints out any events. | 56 // prints out any events. |
| 57 | 57 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 io_thread.Stop(); | 455 io_thread.Stop(); |
| 456 return 0; | 456 return 0; |
| 457 } | 457 } |
| 458 | 458 |
| 459 } // namespace | 459 } // namespace |
| 460 } // namespace syncer | 460 } // namespace syncer |
| 461 | 461 |
| 462 int main(int argc, char* argv[]) { | 462 int main(int argc, char* argv[]) { |
| 463 return syncer::SyncClientMain(argc, argv); | 463 return syncer::SyncClientMain(argc, argv); |
| 464 } | 464 } |
| OLD | NEW |